Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
vmdriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
2
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
9 years ago
by
Czémán Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vm: rename hosts to endpoints
parent
6abcc2f6
Hide 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):
def
__init__
(
self
,
source
,
hos
ts
,
endpoin
ts
,
disk_device
=
"disk"
,
driver_name
=
"qemu"
,
driver_type
=
"raw"
,
...
...
@@ -267,7 +267,7 @@ class CephVMDisk(VMDisk):
target_device
=
target_device
,
target_bus
=
target_bus
)
self
.
hosts
=
hos
ts
self
.
endpoints
=
endpoin
ts
self
.
protocol
=
protocol
self
.
ceph_user
=
ceph_user
self
.
secret_uuid
=
secret_uuid
...
...
@@ -285,7 +285,7 @@ class CephVMDisk(VMDisk):
attrib
=
{
"name"
:
self
.
source
,
"protocol"
:
self
.
protocol
})
for
name
,
port
in
self
.
hos
ts
:
for
name
,
port
in
self
.
endpoin
ts
:
ET
.
SubElement
(
source
,
"host"
,
attrib
=
{
"name"
:
name
,
"port"
:
unicode
(
port
)})
...
...
This diff is collapsed.
Click to expand it.
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