Repository: jclouds Updated Branches: refs/heads/master 040195915 -> b92892094
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/b9289209 Tree: http://git-wip-us.apache.org/repos/asf/jclouds/tree/b9289209 Diff: http://git-wip-us.apache.org/repos/asf/jclouds/diff/b9289209 Branch: refs/heads/master Commit: b92892094b0d4c30cf4c767e9759c0f350b7dd46 Parents: 0401959 Author: jasdeep-hundal <[email protected]> Authored: Tue Mar 25 16:39:56 2014 -0700 Committer: Everett Toews <[email protected]> Committed: Mon Mar 31 14:11:43 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/b9289209/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; }
