Merge pull request #639 from jpic/fix/lxc-option-parsing
Fixed lxc option parsing.
This commit is contained in:
commit
9c87bedb19
1 changed files with 1 additions and 1 deletions
|
@ -708,7 +708,7 @@ class LxcContainerManagement(object):
|
||||||
for option_line in container_config:
|
for option_line in container_config:
|
||||||
# Look for key in config
|
# Look for key in config
|
||||||
if option_line.startswith(key):
|
if option_line.startswith(key):
|
||||||
_, _value = option_line.split('=')
|
_, _value = option_line.split('=', 1)
|
||||||
config_value = ' '.join(_value.split())
|
config_value = ' '.join(_value.split())
|
||||||
line_index = container_config.index(option_line)
|
line_index = container_config.index(option_line)
|
||||||
# If the sanitized values don't match replace them
|
# If the sanitized values don't match replace them
|
||||||
|
|
Loading…
Reference in a new issue