forked from uncloud/uncloud
passing arguments dict to componenets instead of **kwargs
This commit is contained in:
parent
d9dd6b48dc
commit
31ec024be6
7 changed files with 18 additions and 44 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue