summaryrefslogtreecommitdiff
path: root/cloud/lxc
diff options
context:
space:
mode:
authorKevin Carter <kevin.carter@rackspace.com>2015-03-18 23:33:33 -0500
committerKevin Carter <kevin.carter@rackspace.com>2015-03-18 23:33:33 -0500
commit24cfcd2497f1d68cfffaef6f5afa355018f663c2 (patch)
tree401af01b4a1c0996e93a989ebd9144cd1e3cd7d2 /cloud/lxc
parentcb848fcd9ec8364210fc05a5a7addd955b8a2529 (diff)
downloadansible-modules-extras-24cfcd2497f1d68cfffaef6f5afa355018f663c2.tar.gz
Updated lxc_container module to fix option parsing
The option parsing object within the module was performing a split on an '=' sign and assuming that there would only ever be one '=' in a user provided option. Sadly, the assumption is incorrect and the list comprehension that is building the options list needs to be set to split on the first occurrence of an '=' sign in a given option string. This commit adds the required change to make it possible for options to contain additional '=' signs and be handled correctly.
Diffstat (limited to 'cloud/lxc')
-rw-r--r--cloud/lxc/lxc_container.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloud/lxc/lxc_container.py b/cloud/lxc/lxc_container.py
index 1ae67bf2..c5b29082 100644
--- a/cloud/lxc/lxc_container.py
+++ b/cloud/lxc/lxc_container.py
@@ -616,7 +616,7 @@ class LxcContainerManagement(object):
# TODO(cloudnull) adjust import when issue has been resolved.
import ast
options_dict = ast.literal_eval(_container_config)
- parsed_options = [i.split('=') for i in options_dict]
+ parsed_options = [i.split('=', 1) for i in options_dict]
config_change = False
for key, value in parsed_options: