JCLOUDS-515: Don't require availability zone when creating volumes in cinder

This commit is contained in:
jasdeep-hundal 2014-03-25 16:39:56 -07:00 committed by Everett Toews
parent 63d6d97553
commit a45a24d4a1
1 changed files with 2 additions and 1 deletions

View File

@ -241,7 +241,7 @@ public class Volume {
this.id = checkNotNull(id, "id");
this.status = checkNotNull(status, "status");
this.size = size;
this.zone = checkNotNull(zone, "zone");
this.zone = zone;
this.created = checkNotNull(created, "created");
this.attachments = attachments == null ? ImmutableSet.<VolumeAttachment>of() : ImmutableSet.copyOf(attachments);
this.volumeType = volumeType;
@ -275,6 +275,7 @@ public class Volume {
/**
* @return the availabilityZone containing this volume
*/
@Nullable
public String getZone() {
return this.zone;
}