lib/fog/vcloud_director/models/compute/medias.rb in fog-maestrodev-1.18.0.20131127194823 vs lib/fog/vcloud_director/models/compute/medias.rb in fog-maestrodev-1.18.0.20131205181604

- old
+ new

@@ -21,10 +21,10 @@ service.add_id_from_href!(response.body) media = new(response.body) # Perhaps this would be better implemented as media#upload. - file = response.body[:Files][:File] + file = response.body[:Files][:File].first file[:Link] = [file[:Link]] if file[:Link].is_a?(Hash) link = file[:Link].detect {|l| l[:rel] == 'upload:default'} headers = { 'Content-Length' => io.size,