diff --git a/cloud/lxc/lxc_container.py b/cloud/lxc/lxc_container.py index ea4952f6b03..3cbff3314e8 100644 --- a/cloud/lxc/lxc_container.py +++ b/cloud/lxc/lxc_container.py @@ -745,6 +745,8 @@ class LxcContainerManagement(object): config_change = False for key, value in parsed_options: + key = key.strip() + value = value.strip() new_entry = '%s = %s\n' % (key, value) for option_line in container_config: # Look for key in config