search for: _get_vol_url

Displaying 2 results from an estimated 2 matches for "_get_vol_url".

2010 Jun 07
1
[PATCH] ESX: Fix storage URL if storage has a snapshot
...sub get_volume my $datastore = $1; my $vmdk = $2; - my $url = URI->new("https://".$self->{_v2v_server}); - $url->path("/folder/$vmdk-flat.vmdk"); - $url->query_form(dcPath => "ha-datacenter", dsName => $datastore); + my $url = _get_vol_url($self->{_v2v_server}, $vmdk, $datastore); # Replace / with _ so the vmdk name can be used as a volume name my $volname = $vmdk; @@ -125,16 +123,39 @@ sub get_volume # We could do this with a single GET request. The problem with this is that # you have to create the volume b...
2010 Sep 21
1
[PREVIEW ONLY] Refactor data transfer code
...# https://yellow.rhev.marston/folder/win2k3r2-32/win2k3r2-32-flat.vmdk? \ - # dcPath=ha-datacenter&dsName=yellow:storage1 - - $path =~ /^\[(.*)\]\s+(.*)\.vmdk$/ - or die("Failed to parse ESX path: $path"); - my $datastore = $1; - my $vmdk = $2; - - my $url = _get_vol_url($self->{_v2v_server}, $vmdk, $datastore); + my $base = URI->new($uri->scheme.'://'.$uri->host); + my $conn = new Net::HTTPS(Host => $uri->host, + MaxLineLength => 0) + or die(user_message(__x("Failed to connect to {host}: {...