Skip to content

Commit

Permalink
Merge pull request #34 from vmware/topic/okurth/fix-equal-in-param
Browse files Browse the repository at this point in the history
fix for split failure when there is more than one equals sign in 'param'
  • Loading branch information
oliverkurth committed Sep 27, 2023
2 parents 08dadce + 99f64e3 commit be82c82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ova-compose/ova-compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,7 @@ def yaml_param(loader, node):
assert type(key) is str, f"param name must be a string"

if '=' in key:
key, default = [t.strip() for t in key.split('=')]
key, default = [t.strip() for t in key.split('=', maxsplit=1)]
default = yaml.safe_load(default)
value = params.get(key, default)

Expand Down Expand Up @@ -1096,7 +1096,7 @@ def main():
elif o in ['-m', '--manifest']:
do_manifest = True
elif o in ['--param']:
k,v = a.split('=')
k,v = a.split('=', maxsplit=1)
params[k] = yaml.safe_load(v)
elif o in ['-q']:
do_quiet = True
Expand Down

0 comments on commit be82c82

Please sign in to comment.