Commit abd94540 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

Updated entry for request

parent 29bf6501
...@@ -84,7 +84,7 @@ def call(fun, config=False, option=[]): ...@@ -84,7 +84,7 @@ def call(fun, config=False, option=[]):
checkOption(element) checkOption(element)
if config: if config:
if not checkSlaposCfg(): if not checkSlaposCfg():
sys.argv.append(config) sys.argv = [sys.argv[0]] + [config] + sys.argv[1:]
fun() fun()
def showUsage(): def showUsage():
...@@ -125,7 +125,8 @@ def dispatch(command, is_node): ...@@ -125,7 +125,8 @@ def dispatch(command, is_node):
else: else:
supervisord() supervisord()
elif command == 'request': elif command == 'request':
request() config = '~/.slapos/slapos.cfg'
call(request, config=config)
elif command == 'supply': elif command == 'supply':
raise EntryPointNotImplementedError(command) raise EntryPointNotImplementedError(command)
elif command == 'start': elif command == 'start':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment