Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
itminedu
okeanos-LoD
Commits
7ad46afe
Commit
7ad46afe
authored
Jul 21, 2015
by
efikalti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
define networks list
parent
58dec538
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
core/fokia/provisioner.py
core/fokia/provisioner.py
+2
-1
No files found.
core/fokia/provisioner.py
View file @
7ad46afe
...
...
@@ -127,12 +127,13 @@ class Provisioner:
else
:
image_id
=
self
.
find_image
(
**
kwargs
)[
'id'
]
project_id
=
self
.
find_project_id
(
**
kwargs
)[
'id'
]
networks
=
list
()
if
ip
!=
None
:
ip_obj
=
dict
()
ip_obj
[
'uuid'
]
=
ip
[
'floating_network_id'
]
ip_obj
[
'fixed_ip'
]
=
ip
[
'floating_ip_address'
]
networks
.
append
(
ip_obj
)
networks
=
[
{
'uuid'
:
kwargs
[
'net_id'
]}
]
networks
.
append
(
{
'uuid'
:
kwargs
[
'net_id'
]}
)
if
personality
==
None
:
personality
=
[]
try
:
...
...
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