Commit da1eace1 by Stéphane Graber

Merge pull request #974 from ar45/lxc_python_create_with_tuple

Fixed python-lxc reference to var before assignment
parents 81574036 9cee41de
......@@ -222,11 +222,12 @@ class Container(_lxc.Container):
for item in args.items():
tmp_args.append("--%s" % item[0])
tmp_args.append("%s" % item[1])
args = tmp_args
template_args = {}
if template:
template_args['template'] = template
template_args['flags'] = flags
template_args['args'] = tuple(tmp_args)
template_args['args'] = tuple(args)
if bdevtype:
template_args['bdevtype'] = bdevtype
return _lxc.Container.create(self, **template_args)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment