Changeset - 697f99bacb55
[Not reviewed]
version_5
0 1 0
Dennis Fink - 9 years ago 2015-10-15 01:55:15
dennis.fink@c3l.lu
Also remove the json file in the data dir if a server is removed
1 file changed with 6 insertions and 0 deletions:
0 comments (0 inline, 0 general)
ennstatus/cli/commands/config.py
Show inline comments
 
@@ -92,3 +92,9 @@ def delete(obj, name):
 

	
 
    with obj['config_file'].open(mode='w', encoding='utf-8') as f:
 
        json.dump(config, f, indent=4, sort_keys=True)
 

	
 
    filename = obj['data_dir'] / (name + '.json')
 
    try:
 
        filename.unlink()
 
    except FileNotFoundError:
 
        pass
0 comments (0 inline, 0 general)