Commit a815ee13 by Czémán Arnold

vm: rename hosts to endpoints

parent 6abcc2f6
......@@ -246,7 +246,7 @@ class CephVMDisk(VMDisk):
def __init__(self,
source,
hosts,
endpoints,
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 = hosts
self.endpoints = endpoints
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.hosts:
for name, port in self.endpoints:
ET.SubElement(source, "host",
attrib={"name": name, "port": unicode(port)})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment