1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
This commit is contained in:
Aurélien Grimal 2018-08-05 23:49:11 +02:00 committed by ansibot
parent 8f8e3db067
commit 71952a0aad

View file

@ -457,9 +457,13 @@ class LXDContainerManagement(object):
return False
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 old_configs[k] != v:
return True
return False
else:
old_configs = self.old_container_json['metadata'][key]
return self.config[key] != old_configs
return self.config[key] != old_configs
def _needs_to_apply_container_configs(self):
return (