Skip to content
Snippets Groups Projects
Commit 24cbf228 authored by Matthew Mosesohn's avatar Matthew Mosesohn Committed by GitHub
Browse files

Update inventory.py

parent 95e14ffb
No related branches found
No related tags found
No related merge requests found
......@@ -86,8 +86,12 @@ class KargoInventory(object):
self.write_config(self.config_file)
def write_config(self, config_file):
with open(config_file, 'w') as f:
self.config.write(f)
if config_file:
with open(config_file, 'w') as f:
self.config.write(f)
else:
print("WARNING: Unable to save config. Make sure you set "
"CONFIG_FILE env var.")
def debug(self, msg):
if DEBUG:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment