mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Fix bug in comparing config
This commit is contained in:
committed by
Matt Clay
parent
53fe20f1da
commit
e151e5324e
@@ -444,7 +444,7 @@ class LxdContainerManagement(object):
|
|||||||
if key not in self.config:
|
if key not in self.config:
|
||||||
return False
|
return False
|
||||||
if key == 'config':
|
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:
|
else:
|
||||||
old_configs = self.old_container_json['metadata'][key]
|
old_configs = self.old_container_json['metadata'][key]
|
||||||
return self.config[key] != old_configs
|
return self.config[key] != old_configs
|
||||||
|
|||||||
Reference in New Issue
Block a user