]> git.ipfire.org Git - thirdparty/lxc.git/commit
Fixed python-lxc reference to var before assignment 974/head
authorAron Podrigal <aronp@guaranteedplus.com>
Thu, 14 Apr 2016 04:21:08 +0000 (00:21 -0400)
committerAron Podrigal <aronp@guaranteedplus.com>
Thu, 14 Apr 2016 04:24:08 +0000 (00:24 -0400)
commit9cee41def4bbaddc089ea02f85b2ed028ac5a549
tree909891a82c26849b43391e38f9f2d766c19bf5c8
parent8157403674e06a7620e8642c2aa585dacd1125dd
Fixed python-lxc reference to var before assignment

```
>>> c = lxc.Container('ct')
>>> c.create('debian', args=('-r', 'jessie'))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/lxc/__init__.py", line 229, in
create
    template_args['args'] = tuple(tmp_args)
UnboundLocalError: local variable 'tmp_args' referenced before
assignment
```

Signed-off-by: Aron Podrigal <aronp@guaranteedplus.com>
src/python-lxc/lxc/__init__.py