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
46de2184
authored
May 13, 2019
by
Belákovics Ádám
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'vm' of
https://git.ik.bme.hu/RECIRCLE/interface-openstack
into DEV
parents
ac71d0e6
51b00d53
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
4 deletions
+1
-4
implementation/vm/instance.py
+1
-4
No files found.
implementation/vm/instance.py
View file @
46de2184
...
@@ -52,7 +52,7 @@ class OSVirtualMachineManager(InstanceInterface):
...
@@ -52,7 +52,7 @@ class OSVirtualMachineManager(InstanceInterface):
@openstackError
@openstackError
def
create_vm_from_template
(
self
,
name
,
image
,
flavor
,
networks
):
def
create_vm_from_template
(
self
,
name
,
image
,
flavor
,
networks
):
self
.
create_multiple_vm_from_template
(
name
,
image
,
flavor
,
networks
,
1
)
return
self
.
create_multiple_vm_from_template
(
name
,
image
,
flavor
,
networks
,
1
)
@openstackError
@openstackError
def
create_multiple_vm_from_template
(
self
,
name
,
image
,
flavor
,
networks
,
def
create_multiple_vm_from_template
(
self
,
name
,
image
,
flavor
,
networks
,
...
@@ -190,9 +190,6 @@ class OSVirtualMachineManager(InstanceInterface):
...
@@ -190,9 +190,6 @@ class OSVirtualMachineManager(InstanceInterface):
def
attach_volume
(
self
,
server_id
,
volume_id
,
device
=
None
):
def
attach_volume
(
self
,
server_id
,
volume_id
,
device
=
None
):
self
.
openstack
.
compute
.
create_volume_attachment
(
server_id
,
self
.
openstack
.
compute
.
create_volume_attachment
(
server_id
,
{
"volumeId"
:
volume_id
,
{
"volumeId"
:
volume_id
,
# server = interface.openstack.compute.get_server("8e94c162-f8ed-4872-b9e5-50bf33040b5b")
#
# print(server) "device": device
})
})
@openstackError
@openstackError
...
...
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