Skip to content

Commit

Permalink
#68: Update config.py
Browse files Browse the repository at this point in the history
  • Loading branch information
keiranjprice101 committed Sep 23, 2019
1 parent 5fb2bd6 commit 3a34c3b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions common/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,17 @@ def is_generate_swagger(self):
except:
sys.exit("Missing config value, generate_swagger")

def get_host(self):
try:
return self.config["host"]
except:
sys.exit("Missing config value, host")

def get_port(self):
try:
return self.config["port"]
except:
sys.exit("Missing config value, port")


config = Config()

0 comments on commit 3a34c3b

Please sign in to comment.