1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Merge pull request #2488 from nosborn/vcloud_director_post_attach_disk

[vcloud_director] s/@end_point/end_point/
This commit is contained in:
Wesley Beary 2013-12-18 06:53:04 -08:00
commit 2a4ac7f9c6
4 changed files with 4 additions and 4 deletions

View file

@ -26,7 +26,7 @@ module Fog
:xmlns => 'http://www.vmware.com/vcloud/v1.5' :xmlns => 'http://www.vmware.com/vcloud/v1.5'
} }
DiskAttachOrDetachParams(attrs) { DiskAttachOrDetachParams(attrs) {
Disk(:href => "#{@end_point}disk/#{media_id}") Disk(:href => "#{end_point}disk/#{disk_id}")
if options.key?(:BusNumber) if options.key?(:BusNumber)
BusNumber options[:BusNumber] BusNumber options[:BusNumber]
end end

View file

@ -20,7 +20,7 @@ module Fog
:xmlns => 'http://www.vmware.com/vcloud/v1.5' :xmlns => 'http://www.vmware.com/vcloud/v1.5'
} }
DiskAttachOrDetachParams(attrs) { DiskAttachOrDetachParams(attrs) {
Disk(:href => "#{@end_point}disk/#{media_id}") Disk(:href => "#{end_point}disk/#{disk_id}")
} }
end.to_xml end.to_xml

View file

@ -20,7 +20,7 @@ module Fog
:xmlns => 'http://www.vmware.com/vcloud/v1.5' :xmlns => 'http://www.vmware.com/vcloud/v1.5'
} }
MediaInsertOrEjectParams(attrs) { MediaInsertOrEjectParams(attrs) {
Media(:href => "#{@end_point}media/#{media_id}") Media(:href => "#{end_point}media/#{media_id}")
} }
end.to_xml end.to_xml

View file

@ -20,7 +20,7 @@ module Fog
:xmlns => 'http://www.vmware.com/vcloud/v1.5' :xmlns => 'http://www.vmware.com/vcloud/v1.5'
} }
MediaInsertOrEjectParams(attrs) { MediaInsertOrEjectParams(attrs) {
Media(:href => "#{@end_point}media/#{media_id}") Media(:href => "#{end_point}media/#{media_id}")
} }
end.to_xml end.to_xml