lib/fog/aliyun/requests/compute/detach_disk.rb in fog-aliyun-0.2.0 vs lib/fog/aliyun/requests/compute/detach_disk.rb in fog-aliyun-0.2.1
- old
+ new
@@ -16,10 +16,11 @@
pathUrl += instanceId
parameters['DiskId'] = diskId
pathUrl += '&DiskId='
pathUrl += diskId
-
+
+ device = _options[:device]
if device
parameters['Device'] = device
pathUrl += '&Device='
pathUrl += URI.encode(device, '/[^!*\'()\;?:@#&%=+$,{}[]<>`" ')
end