Skip to content

Commit 3203a23

Browse files
author
Vladimir Kotal
committed
exit on failure
1 parent c6e1154 commit 3203a23

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tools/projadm.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,9 +309,10 @@ def project_delete(doit, logger, project, uri):
309309
if doit:
310310
with io.open(main_config, mode='r',
311311
encoding="utf-8") as config_file:
312-
config_data = config_file.read()
313-
set_configuration(logger,
314-
config_data.encode("utf-8"), uri)
312+
config_data = config_file.read().encode("utf-8")
313+
if not set_configuration(logger,
314+
config_data, uri):
315+
sys.exit(1)
315316
else:
316317
logger.error("file {} does not exist".format(main_config))
317318
sys.exit(1)

0 commit comments

Comments
 (0)