Keep newlines when reading LXC container config file (#32219)

pull/32658/merge
Musee Ullah 8 years ago committed by Matt Martz
parent 1379e77bf1
commit e2e3ab4d45

@ -725,7 +725,7 @@ class LxcContainerManagement(object):
container_config_file = self.container.config_file_name
with open(container_config_file, 'rb') as f:
container_config = to_text(f.read(), errors='surrogate_or_strict').splitlines()
container_config = to_text(f.read(), errors='surrogate_or_strict').splitlines(True)
# Note used ast literal_eval because AnsibleModule does not provide for
# adequate dictionary parsing.

Loading…
Cancel
Save