heat/heat
Steven Hardy 94dec9e286 Disable nested validation for ResourceGroup with zero count
Some users (TripleO specifically) want to disable features via a
count of zero, which is a problem as we always recurse and validate
the nested stack since c31c34f8df

Instead, we only do validation when the count is non-zero, to
enable, e.g default image names, to be ignored at validation
time (as we'll never use them) instead of rejected by the nested
schema (e.g the server.py properties schema which contains a
custom contraint to always validate the image).

This should still allow us to fail fast (at validation time before
creating anything) when we're actually about to create something,
e.g when the count is non-zero.

This patch also rolls in the fix for the regression this originally
caused on master, Iea454f4201990f65633b644bbefe708e5a216885.

Change-Id: I411ff41a9e0730e9864f5ed4ac54f1d5d0ec02d7
Closes-Bug: #1401929
Closes-Bug: #1404399
(cherry picked from commit 907c0aac79 and 4834443353)
2015-01-12 14:20:18 -05:00
..
api Use kwargs for ResourcePropertyConflict exception 2014-12-10 05:38:09 -05:00
cloudinit Remove translation from loguserdata 2014-06-01 17:45:46 +02:00
cmd Sync latest oslo.db code 2014-04-11 10:48:46 +03:00
common Use kwargs for ResourcePropertyConflict exception 2014-12-10 05:38:09 -05:00
db Tolerate null on Json db load 2014-10-23 16:55:50 +13:00
engine Disable nested validation for ResourceGroup with zero count 2015-01-12 14:20:18 -05:00
locale Update translations for Juno 2014-10-08 10:21:16 -04:00
openstack Remove unused network_utils 2014-09-30 11:41:12 +02:00
rpc Pass list of parameters to engine service to reset 2014-09-15 17:51:32 -07:00
scaling Switch to oslo.utils 2014-09-30 14:27:59 +02:00
tests Disable nested validation for ResourceGroup with zero count 2015-01-12 14:20:18 -05:00
__init__.py Switch heat resources & db & tests to oslo.i18n 2014-09-17 14:28:56 +08:00
version.py Make the first line of every file consistent. 2014-03-04 09:03:04 -06:00