diff --git a/lib/ansible/modules/cloud/docker/docker_container.py b/lib/ansible/modules/cloud/docker/docker_container.py index 37fd620887..d79c713772 100644 --- a/lib/ansible/modules/cloud/docker/docker_container.py +++ b/lib/ansible/modules/cloud/docker/docker_container.py @@ -1698,7 +1698,10 @@ class Container(DockerBaseClass): self.log('_get_expected_sysctls') if config_sysctls is None: return None - return {key: str(value) for key, value in config_systctls.items()} + result = dict() + for key, value in config_sysctls.items(): + result[key] = str(value) + return result def _get_expected_cmd(self): self.log('_get_expected_cmd')