Commit 4c4105b6 authored by Andrii Salnikov's avatar Andrii Salnikov

fix arcctl runconfig load in standalone mode with arc.conf present

parent 3e43c944
......@@ -99,7 +99,9 @@ def get_parsed_arcconf(conf_f):
return None
if runconf_load:
if arcctl_runtime_config is not None:
if arcctl_runtime_config is None:
runconf_load = False
else:
runconf_load = os.path.exists(arcctl_runtime_config)
else:
logger.debug('Custom ARC configuration file location is specified. Ignoring cached runtime configuration usage.')
......@@ -125,9 +127,9 @@ def get_parsed_arcconf(conf_f):
arcconfig.conf_f = conf_f
except IOError:
if arcctl_ce_mode():
logger.debug('arcctl is working in config-less mode relying on defaults only')
else:
logger.error('Failed to open ARC configuration file %s', conf_f)
else:
logger.debug('arcctl is working in config-less mode relying on defaults only')
arcconfig = None
return arcconfig
......
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