Keep newlines when reading LXC container config file (#32219)
This commit is contained in:
parent
afc460c943
commit
7318b7c0b0
1 changed files with 1 additions and 1 deletions
|
@ -723,7 +723,7 @@ class LxcContainerManagement(object):
|
||||||
|
|
||||||
container_config_file = self.container.config_file_name
|
container_config_file = self.container.config_file_name
|
||||||
with open(container_config_file, 'rb') as f:
|
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
|
# Note used ast literal_eval because AnsibleModule does not provide for
|
||||||
# adequate dictionary parsing.
|
# adequate dictionary parsing.
|
||||||
|
|
Loading…
Reference in a new issue