[mod] main:keinen Pfad zur Zustands-Datei anzeigen, wenn nur die expandierte conf ausgegeben werden soll
This commit is contained in:
parent
d06d7ae883
commit
e6b2950bcc
|
|
@ -129,6 +129,17 @@ def main():
|
||||||
+
|
+
|
||||||
"\n"
|
"\n"
|
||||||
)
|
)
|
||||||
|
else:
|
||||||
|
### get configuration data
|
||||||
|
conf = conf_load(
|
||||||
|
check_kind_implementations,
|
||||||
|
notification_channel_implementations,
|
||||||
|
_os.path.abspath(args.conf_path)
|
||||||
|
)
|
||||||
|
|
||||||
|
if (args.expose_full_conf):
|
||||||
|
_sys.stdout.write(_json.dumps(conf, indent = "\t") + "\n")
|
||||||
|
_sys.exit(1)
|
||||||
else:
|
else:
|
||||||
_sys.stderr.write(
|
_sys.stderr.write(
|
||||||
string_coin(
|
string_coin(
|
||||||
|
|
@ -140,16 +151,6 @@ def main():
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
### get configuration data
|
|
||||||
conf = conf_load(
|
|
||||||
check_kind_implementations,
|
|
||||||
notification_channel_implementations,
|
|
||||||
_os.path.abspath(args.conf_path)
|
|
||||||
)
|
|
||||||
if (args.expose_full_conf):
|
|
||||||
_sys.stdout.write(_json.dumps(conf, indent = "\t") + "\n")
|
|
||||||
_sys.exit(1)
|
|
||||||
else:
|
|
||||||
### get state data
|
### get state data
|
||||||
if (
|
if (
|
||||||
(not _os.path.exists(state_path))
|
(not _os.path.exists(state_path))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue