enables to set keys not present in existing config (#61607)

This commit is contained in:
satunnainen 2019-09-19 14:14:26 +03:00 committed by ansibot
parent 875cc156c9
commit 95525030e2

View file

@ -502,6 +502,8 @@ class LXDContainerManagement(object):
if key == 'config': if key == 'config':
old_configs = dict((k, v) for k, v in self.old_container_json['metadata'][key].items() if not k.startswith('volatile.')) old_configs = dict((k, v) for k, v in self.old_container_json['metadata'][key].items() if not k.startswith('volatile.'))
for k, v in self.config['config'].items(): for k, v in self.config['config'].items():
if k not in old_configs:
return True
if old_configs[k] != v: if old_configs[k] != v:
return True return True
return False return False