diff --git a/plugins/modules/lxc_container.py b/plugins/modules/lxc_container.py index 7871f139720..9fe27b8d816 100644 --- a/plugins/modules/lxc_container.py +++ b/plugins/modules/lxc_container.py @@ -677,7 +677,7 @@ def _get_vars(self, variables): false_values = BOOLEANS_FALSE.union([None, '']) result = dict( - (k, v) + (v, self.module.params[k]) for k, v in variables.items() if self.module.params[k] not in false_values )