[lxc-devel] [lxc/lxc] 9cee41: Fixed python-lxc reference to var before assignmen...

GitHub noreply at github.com
Thu Apr 14 04:41:13 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 9cee41def4bbaddc089ea02f85b2ed028ac5a549
      https://github.com/lxc/lxc/commit/9cee41def4bbaddc089ea02f85b2ed028ac5a549
  Author: Aron Podrigal <aronp at guaranteedplus.com>
  Date:   2016-04-14 (Thu, 14 Apr 2016)

  Changed paths:
    M src/python-lxc/lxc/__init__.py

  Log Message:
  -----------
  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 at guaranteedplus.com>


  Commit: da1eace1defcb55a6c0eb63c3b2b1ba8092325ce
      https://github.com/lxc/lxc/commit/da1eace1defcb55a6c0eb63c3b2b1ba8092325ce
  Author: Stéphane Graber <stgraber at stgraber.org>
  Date:   2016-04-14 (Thu, 14 Apr 2016)

  Changed paths:
    M src/python-lxc/lxc/__init__.py

  Log Message:
  -----------
  Merge pull request #974 from ar45/lxc_python_create_with_tuple

Fixed python-lxc reference to var before assignment


Compare: https://github.com/lxc/lxc/compare/8157403674e0...da1eace1defc


More information about the lxc-devel mailing list