mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-17 22:30:59 +00:00
Keep newlines when reading LXC container config file (#32219)
This commit is contained in:
@@ -723,7 +723,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.
|
||||
|
||||
Reference in New Issue
Block a user