Repository: jclouds Updated Branches: refs/heads/1.7.x 63d6d9755 -> a45a24d4a
JCLOUDS-515: Don't require availability zone when creating volumes in cinder Project: http://git-wip-us.apache.org/repos/asf/jclouds/repo Commit: http://git-wip-us.apache.org/repos/asf/jclouds/commit/a45a24d4 Tree: http://git-wip-us.apache.org/repos/asf/jclouds/tree/a45a24d4 Diff: http://git-wip-us.apache.org/repos/asf/jclouds/diff/a45a24d4 Branch: refs/heads/1.7.x Commit: a45a24d4a16b6758dbccae8da73bc6dfce3387bd Parents: 63d6d97 Author: jasdeep-hundal <[email protected]> Authored: Tue Mar 25 16:39:56 2014 -0700 Committer: Everett Toews <[email protected]> Committed: Mon Mar 31 14:15:34 2014 -0500 ---------------------------------------------------------------------- .../main/java/org/jclouds/openstack/cinder/v1/domain/Volume.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/jclouds/blob/a45a24d4/apis/openstack-cinder/src/main/java/org/jclouds/openstack/cinder/v1/domain/Volume.java ---------------------------------------------------------------------- diff --git a/apis/openstack-cinder/src/main/java/org/jclouds/openstack/cinder/v1/domain/Volume.java b/apis/openstack-cinder/src/main/java/org/jclouds/openstack/cinder/v1/domain/Volume.java index 332b987..a9be750 100644 --- a/apis/openstack-cinder/src/main/java/org/jclouds/openstack/cinder/v1/domain/Volume.java +++ b/apis/openstack-cinder/src/main/java/org/jclouds/openstack/cinder/v1/domain/Volume.java @@ -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; }
