Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
vmdriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a815ee13
authored
May 05, 2016
by
Czémán Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vm: rename hosts to endpoints
parent
6abcc2f6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
vm.py
+3
-3
No files found.
vm.py
View file @
a815ee13
...
@@ -246,7 +246,7 @@ class CephVMDisk(VMDisk):
...
@@ -246,7 +246,7 @@ class CephVMDisk(VMDisk):
def
__init__
(
self
,
def
__init__
(
self
,
source
,
source
,
hos
ts
,
endpoin
ts
,
disk_device
=
"disk"
,
disk_device
=
"disk"
,
driver_name
=
"qemu"
,
driver_name
=
"qemu"
,
driver_type
=
"raw"
,
driver_type
=
"raw"
,
...
@@ -267,7 +267,7 @@ class CephVMDisk(VMDisk):
...
@@ -267,7 +267,7 @@ class CephVMDisk(VMDisk):
target_device
=
target_device
,
target_device
=
target_device
,
target_bus
=
target_bus
)
target_bus
=
target_bus
)
self
.
hosts
=
hos
ts
self
.
endpoints
=
endpoin
ts
self
.
protocol
=
protocol
self
.
protocol
=
protocol
self
.
ceph_user
=
ceph_user
self
.
ceph_user
=
ceph_user
self
.
secret_uuid
=
secret_uuid
self
.
secret_uuid
=
secret_uuid
...
@@ -285,7 +285,7 @@ class CephVMDisk(VMDisk):
...
@@ -285,7 +285,7 @@ class CephVMDisk(VMDisk):
attrib
=
{
"name"
:
self
.
source
,
attrib
=
{
"name"
:
self
.
source
,
"protocol"
:
self
.
protocol
})
"protocol"
:
self
.
protocol
})
for
name
,
port
in
self
.
hos
ts
:
for
name
,
port
in
self
.
endpoin
ts
:
ET
.
SubElement
(
source
,
"host"
,
ET
.
SubElement
(
source
,
"host"
,
attrib
=
{
"name"
:
name
,
"port"
:
unicode
(
port
)})
attrib
=
{
"name"
:
name
,
"port"
:
unicode
(
port
)})
...
...
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