Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
da1eace1
Commit
da1eace1
authored
Apr 14, 2016
by
Stéphane Graber
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #974 from ar45/lxc_python_create_with_tuple
Fixed python-lxc reference to var before assignment
parents
81574036
9cee41de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
__init__.py
src/python-lxc/lxc/__init__.py
+2
-1
No files found.
src/python-lxc/lxc/__init__.py
View file @
da1eace1
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment