Repository: libcloud Updated Branches: refs/heads/trunk e24b498c5 -> de8e4ce7f
add a deprecated flag to a size Signed-off-by: Tomaz Muraus <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/5f2925d4 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/5f2925d4 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/5f2925d4 Branch: refs/heads/trunk Commit: 5f2925d4739ab43906f8a1c4f8105e5f96f50347 Parents: e24b498 Author: Chris Hannam <[email protected]> Authored: Thu Apr 10 12:54:57 2014 +0100 Committer: Tomaz Muraus <[email protected]> Committed: Wed Apr 23 11:41:40 2014 +0200 ---------------------------------------------------------------------- libcloud/compute/drivers/gce.py | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/5f2925d4/libcloud/compute/drivers/gce.py ---------------------------------------------------------------------- diff --git a/libcloud/compute/drivers/gce.py b/libcloud/compute/drivers/gce.py index abe264e..b6e1c16 100644 --- a/libcloud/compute/drivers/gce.py +++ b/libcloud/compute/drivers/gce.py @@ -3125,6 +3125,9 @@ class GCENodeDriver(NodeDriver): extra['tags_fingerprint'] = node['tags']['fingerprint'] extra['scheduling'] = node.get('scheduling', {}) + if (machine_type.get('deprecated')): + extra['deprecated'] = True + extra['boot_disk'] = None for disk in extra['disks']: if disk.get('boot') and disk.get('type') == 'PERSISTENT':
