Repository: libcloud Updated Branches: refs/heads/trunk 5268f2b77 -> c5b6fc29b
Allow undeprecation of an image. Closes #851 Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/a3dbf97c Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/a3dbf97c Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/a3dbf97c Branch: refs/heads/trunk Commit: a3dbf97c7a2935f127f1ac620c97f11abfb90b13 Parents: 5268f2b Author: Max Illfelder <[email protected]> Authored: Wed Aug 10 13:54:35 2016 -0700 Committer: Anthony Shaw <[email protected]> Committed: Thu Aug 11 15:44:42 2016 +1000 ---------------------------------------------------------------------- libcloud/compute/drivers/gce.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/a3dbf97c/libcloud/compute/drivers/gce.py ---------------------------------------------------------------------- diff --git a/libcloud/compute/drivers/gce.py b/libcloud/compute/drivers/gce.py index 337b109..4b2c2a2 100644 --- a/libcloud/compute/drivers/gce.py +++ b/libcloud/compute/drivers/gce.py @@ -500,7 +500,7 @@ class GCENodeImage(NodeImage): :type replacement: ``str`` or :class: `GCENodeImage` :param state: Deprecation state of this image. Possible values include - \'DELETED\', \'DEPRECATED\' or \'OBSOLETE\'. + \'ACTIVE\', \'DELETED\', \'DEPRECATED\' or \'OBSOLETE\'. :type state: ``str`` :param deprecated: RFC3339 timestamp to mark DEPRECATED @@ -3873,7 +3873,7 @@ class GCENodeDriver(NodeDriver): if state is None: state = 'DEPRECATED' - possible_states = ['DELETED', 'DEPRECATED', 'OBSOLETE'] + possible_states = ['ACTIVE', 'DELETED', 'DEPRECATED', 'OBSOLETE'] if state not in possible_states: raise ValueError('state must be one of %s'
