heat/heat/engine/resources/openstack
Peter Razumovsky 4b5f296acc Replace self.properties.get on self.properties[]
Remove unnecessary using self.properties.get for more
clear code. Using properties.get(prop, default) causes
next issues:
1. properties.get(prop) if prop not in properties_schema
will return None instead of expected KeyError.
2. properties.get(prop, default) returns "default" value
if current properties is not presented in properties_schema.
So using self.properties.get() makes sense only when we plan
to use this property with default option in another resource,
which has not it in property schema.
This patch replaces this methods in resources/openstack folder.

Change-Id: I523eb3feacb0cb7a16a928a92896ce56188e376f
2015-05-13 16:24:12 +03:00
..
ceilometer Move ceilometer alarm resource 2015-03-06 11:04:42 +08:00
cinder Replace self.properties.get on self.properties[] 2015-05-13 16:24:12 +03:00
glance Move glance image resource 2015-03-06 11:02:43 +08:00
heat Replace self.properties.get on self.properties[] 2015-05-13 16:24:12 +03:00
neutron Replace self.properties.get on self.properties[] 2015-05-13 16:24:12 +03:00
nova Replace self.properties.get on self.properties[] 2015-05-13 16:24:12 +03:00
sahara Replace self.properties.get on self.properties[] 2015-05-13 16:24:12 +03:00
swift Replace self.properties.get on self.properties[] 2015-05-13 16:24:12 +03:00
trove Replace self.properties.get on self.properties[] 2015-05-13 16:24:12 +03:00
__init__.py Split scaling policy into separate files 2014-08-27 20:27:19 +08:00