Disable cli / otp reading for the moment

Imho this should clearly not leak into scripts/uncloud and
additionally it is broken at the moment
This commit is contained in:
Nico Schottelius 2020-01-14 11:09:45 +01:00
parent b96e56b453
commit 22531a7459
2 changed files with 6 additions and 6 deletions

View file

@ -26,7 +26,7 @@ ETCD_COMPONENTS = ['api', 'scheduler', 'host', 'filescanner',
'imagescanner', 'metadata', 'configure', 'hack']
ALL_COMPONENTS = ETCD_COMPONENTS.copy()
ALL_COMPONENTS.append('cli')
#ALL_COMPONENTS.append('cli')
if __name__ == '__main__':
@ -77,8 +77,8 @@ if __name__ == '__main__':
# we read from file. But, now we are asking user about where the config file lives. So,
# to providing default value is not possible before parsing arguments. So, we are doing
# it after..
settings.settings = settings.Settings(arguments['conf_dir'], seed_value=etcd_arguments)
resolve_otp_credentials(arguments)
# settings.settings = settings.Settings(arguments['conf_dir'], seed_value=etcd_arguments)
# resolve_otp_credentials(arguments)
name = arguments.pop('command')
mod = importlib.import_module('uncloud.{}.main'.format(name))

View file

@ -5,6 +5,6 @@ arg_parser.add_argument('--create-vm')
def main(arguments):
print(arguments)!
debug = arguments['debug']
port = arguments['port']
print(arguments)
#debug = arguments['debug']
#port = arguments['port']