conf: explicitly check if config is None.

Otherwise a blank file may repeatedly submitted.
This commit is contained in:
Jimmy Berry 2017-05-01 22:12:56 -05:00
parent bd0e8825ca
commit e755c061aa

View File

@ -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', '')