[typica] r337 committed - allow device to be empty string on detachVolume call

0 views
Skip to first unread message

typ...@googlecode.com

unread,
Jul 9, 2010, 3:56:24 PM7/9/10
to typic...@googlegroups.com
Revision: 337
Author: dkavanagh
Date: Fri Jul 9 12:55:14 2010
Log: allow device to be empty string on detachVolume call

http://code.google.com/p/typica/source/detail?r=337

Modified:
/trunk/java/com/xerox/amazonws/ec2/Jec2.java

=======================================
--- /trunk/java/com/xerox/amazonws/ec2/Jec2.java Thu Jul 8 15:44:11 2010
+++ /trunk/java/com/xerox/amazonws/ec2/Jec2.java Fri Jul 9 12:55:14 2010
@@ -1663,7 +1663,9 @@
Map<String, String> params = new HashMap<String, String>();
params.put("VolumeId", volumeId);
params.put("InstanceId", (instanceId==null)?"":instanceId);
- params.put("Device", (device==null)?"":device);
+ if (device != null && !device.equals("")) {
+ params.put("Device", device);
+ }
params.put("Force", force?"true":"false");
HttpGet method = new HttpGet();
DetachVolumeResponse response =

Reply all
Reply to author
Forward
0 new messages