enables to set keys not present in existing config (#61607)
This commit is contained in:
parent
875cc156c9
commit
95525030e2
1 changed files with 2 additions and 0 deletions
|
@ -502,6 +502,8 @@ class LXDContainerManagement(object):
|
|||
if key == 'config':
|
||||
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():
|
||||
if k not in old_configs:
|
||||
return True
|
||||
if old_configs[k] != v:
|
||||
return True
|
||||
return False
|
||||
|
|
Loading…
Reference in a new issue