Fix bug in comparing config
This commit is contained in:
parent
f78e6f49e8
commit
cf6e3b9ea8
1 changed files with 1 additions and 1 deletions
|
@ -444,7 +444,7 @@ class LxdContainerManagement(object):
|
|||
if key not in self.config:
|
||||
return False
|
||||
if key == 'config':
|
||||
old_configs = dict((k, v) for k, v in self.old_container_json['metadata'][key].items() if k.startswith('volatile.'))
|
||||
old_configs = dict((k, v) for k, v in self.old_container_json['metadata'][key].items() if not k.startswith('volatile.'))
|
||||
else:
|
||||
old_configs = self.old_container_json['metadata'][key]
|
||||
return self.config[key] != old_configs
|
||||
|
|
Loading…
Reference in a new issue