passing arguments dict to componenets instead of **kwargs

This commit is contained in:
ahmadbilalkhalid 2020-01-10 15:45:48 +05:00
commit 31ec024be6
7 changed files with 18 additions and 44 deletions

View file

@ -565,7 +565,7 @@ api.add_resource(CreateNetwork, '/network/create')
def main(arguments):
debug = arguments['debug']
port = arguments['port']
port = arguments['port']
try:
image_stores = list(
@ -596,12 +596,6 @@ def main(arguments):
# )
try:
app.run(host='::',
port=port,
debug=debug)
app.run(host='::', port=port, debug=debug)
except OSError as e:
raise UncloudException('Failed to start Flask: {}'.format(e))
if __name__ == '__main__':
main()