diff options
author | Steve Baker <sbaker@redhat.com> | 2013-03-18 13:25:05 +1300 |
---|---|---|
committer | Steve Baker <sbaker@redhat.com> | 2013-03-18 13:27:36 +1300 |
commit | 1af949e14cc63a8a382b8740436e229f0bdd3d26 (patch) | |
tree | ca9de1d304be01b99d86def5d3f1dc381c749ba9 | |
parent | c7ec183761dd2a836c53d0a5abbe963f4a8ba27b (diff) | |
download | heat-cfntools-1af949e14cc63a8a382b8740436e229f0bdd3d26.tar.gz |
Raise no exception for cfn-hup _is_valid_metadata()
Now info is logged that no AWS::CloudFormation::Init
existed in the metadata.
Fixes: bug #1155999
Change-Id: Ice7016c65a5bf18f50c3552629f7a182d48db1f2
-rw-r--r-- | heat_cfntools/cfntools/cfn_helper.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/heat_cfntools/cfntools/cfn_helper.py b/heat_cfntools/cfntools/cfn_helper.py index 15c7abd..f733900 100644 --- a/heat_cfntools/cfntools/cfn_helper.py +++ b/heat_cfntools/cfntools/cfn_helper.py @@ -1199,7 +1199,7 @@ class Metadata(object): Process the resource metadata """ if not self._is_valid_metadata(): - raise Exception("invalid metadata") + LOG.info('Metadata does not contain a %s section' % self._init_key) else: if self._is_local_metadata: self._config = self._metadata["config"] |