conf: explicitly check if config is None.
Otherwise a blank file may repeatedly submitted.
This commit is contained in:
parent
bd0e8825ca
commit
e755c061aa
@ -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', '')
|
||||
|
Loading…
x
Reference in New Issue
Block a user