Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
RECIRCLE
/
interface-openstack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
2
Merge Requests
4
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7a1145f9
authored
Aug 15, 2019
by
Bodor Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix create image return value
parent
1a19e435
Pipeline
#832
failed with stage
in 49 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
implementation/vm/instance.py
+5
-2
No files found.
implementation/vm/instance.py
View file @
7a1145f9
...
...
@@ -170,7 +170,8 @@ class OSVirtualMachineManager(InstanceInterface, OpenStackConnection):
self
.
openstack
.
compute
.
create_server_image
(
instance_id
,
image_name
,
metadata
)
image
=
self
.
openstack
.
compute
.
find_image
(
image_name
)
image_id
=
self
.
openstack
.
compute
.
find_image
(
image_name
)
image
=
self
.
openstack
.
image
.
get_image
(
image_id
.
id
)
return
self
.
os_image_to_rc_image
(
image
)
def
get_vnc_console
(
self
,
server_id
):
...
...
@@ -209,5 +210,7 @@ class OSVirtualMachineManager(InstanceInterface, OpenStackConnection):
def
os_image_to_rc_image
(
self
,
os_image
):
return
Image
(
os_image
.
id
,
os_image
.
name
os_image
.
name
,
os_image
.
disk_format
,
os_image
.
size
)
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