From e755c061aa6d5125c1b5333ea255a34545f47351 Mon Sep 17 00:00:00 2001 From: Jimmy Berry Date: Mon, 1 May 2017 22:12:56 -0500 Subject: [PATCH] conf: explicitly check if config is None. Otherwise a blank file may repeatedly submitted. --- osclib/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osclib/conf.py b/osclib/conf.py index fa89d224..5ce27b81 100644 --- a/osclib/conf.py +++ b/osclib/conf.py @@ -155,6 +155,6 @@ class Config(object): cp.readfp(io.BytesIO(config)) self.remote_values = dict(cp.items('remote')) self.populate_conf() - else: + elif config is None: # Write empty config to allow for caching. api.save_file_content(api.cstaging, 'dashboard', 'config', '')