From 14a90d67a6444db8c519b4d0b9a3eadebe08287c Mon Sep 17 00:00:00 2001 From: Zane Bitter Date: Fri, 16 Sep 2016 09:22:01 -0400 Subject: [PATCH] Use correct schema for SoftwareDeploymentGroup rolling_update Change-Id: Ie5f1df4862fcbe7fc2949b3516f91e193461b2a0 Closes-Bug: #1624387 (cherry picked from commit 676281dc8c6708edf7e0b5a6c0a508f0b031d497) --- .../resources/openstack/heat/software_deployment.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/heat/engine/resources/openstack/heat/software_deployment.py b/heat/engine/resources/openstack/heat/software_deployment.py index 43d80c85f..43dabc1ba 100644 --- a/heat/engine/resources/openstack/heat/software_deployment.py +++ b/heat/engine/resources/openstack/heat/software_deployment.py @@ -642,6 +642,19 @@ class SoftwareDeploymentGroup(resource_group.ResourceGroup): default=0), } + update_policy_schema = { + resource_group.ResourceGroup.ROLLING_UPDATE: properties.Schema( + properties.Schema.MAP, + schema=rolling_update_schema, + support_status=support.SupportStatus(version='7.0.0') + ), + resource_group.ResourceGroup.BATCH_CREATE: properties.Schema( + properties.Schema.MAP, + schema=resource_group.ResourceGroup.batch_create_schema, + support_status=support.SupportStatus(version='7.0.0') + ) + } + def get_size(self): return len(self.properties[self.SERVERS])