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
c9558666
authored
Jul 11, 2019
by
Bodor Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create template return the created image
parent
e01d873c
Pipeline
#764
failed with stage
in 37 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
implementation/vm/instance.py
+3
-2
No files found.
implementation/vm/instance.py
View file @
c9558666
...
@@ -159,10 +159,11 @@ class OSVirtualMachineManager(InstanceInterface, OpenStackConnection):
...
@@ -159,10 +159,11 @@ class OSVirtualMachineManager(InstanceInterface, OpenStackConnection):
@openstackError
@openstackError
def
create_template
(
self
,
name_or_id
,
template_name
,
metadata
=
None
):
def
create_template
(
self
,
name_or_id
,
template_name
,
metadata
=
None
):
instance
=
self
.
_get_openstack_server
(
name_or_id
)
self
.
openstack
.
compute
.
create_server_image
(
name_or_id
,
self
.
openstack
.
compute
.
create_server_image
(
instance
,
template_name
,
template_name
,
metadata
)
metadata
)
image
=
self
.
openstack
.
compute
.
find_image
(
template_name
)
return
image
def
get_vnc_console
(
self
,
server_id
):
def
get_vnc_console
(
self
,
server_id
):
with
client
.
Client
(
"2"
,
session
=
self
.
client_session
)
as
nova
:
with
client
.
Client
(
"2"
,
session
=
self
.
client_session
)
as
nova
:
...
...
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