Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Rodrigues authored and pstorz committed Dec 16, 2019
1 parent d0d704e commit 152bcc7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions core/src/plugins/filed/BareosFdPluginOvirt.py
Expand Up @@ -705,8 +705,7 @@ def start_download(self, context, snapshot, disk):

self.transfer_service = self.get_transfer_service( types.ImageTransfer(
snapshot=types.DiskSnapshot(id=snapshot.id),
direction=types.ImageTransferDirection.DOWNLOAD
))
direction=types.ImageTransferDirection.DOWNLOAD ))
transfer = self.transfer_service.get()
proxy_url = urlparse(transfer.proxy_url)
self.proxy_connection = self.get_proxy_connection(proxy_url)
Expand Down Expand Up @@ -817,7 +816,7 @@ def prepare_vm_restore(self, context, options):

if cluster_name is None:
# Find the cluster name of the virtual machine within the OVF:
cluster_name = ovf.xpath(
cluster_name = self.ovf.xpath(
'/ovf:Envelope/Content[@xsi:type="ovf:VirtualSystem_Type"]/ClusterName',
namespaces=OVF_NAMESPACES
)[0].text
Expand Down Expand Up @@ -1029,7 +1028,7 @@ def start_upload(self, context, disk):
"Uploading disk '%s'('%s')\n" % (disk.alias,disk.id))

self.transfer_service = self.get_transfer_service( types.ImageTransfer( image = types.Image( id = disk.id ),
direction = types.ImageTransferDirection.UPLOAD )
direction = types.ImageTransferDirection.UPLOAD ))
transfer = self.transfer_service.get()
proxy_url = urlparse(transfer.proxy_url)
self.proxy_connection = self.get_proxy_connection(proxy_url)
Expand Down

0 comments on commit 152bcc7

Please sign in to comment.