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
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
implementation/vm/instance.py
+7
-4
No files found.
implementation/vm/instance.py
View file @
7a1145f9
...
...
@@ -170,8 +170,9 @@ class OSVirtualMachineManager(InstanceInterface, OpenStackConnection):
self
.
openstack
.
compute
.
create_server_image
(
instance_id
,
image_name
,
metadata
)
image
=
self
.
openstack
.
compute
.
find_image
(
image_name
)
return
self
.
os_image_to_rc_image
(
image
)
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
):
with
client
.
Client
(
"2"
,
session
=
self
.
client_session
)
as
nova
:
...
...
@@ -205,9 +206,11 @@ class OSVirtualMachineManager(InstanceInterface, OpenStackConnection):
launched_at
=
server
.
launched_at
,
terminated_at
=
server
.
terminated_at
,
addresses
=
server
.
addresses
)
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