heat/heat/engine/resources/openstack/swift
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
..
__init__.py Move swift resource 2015-03-06 11:04:08 +08:00
swift.py Replace self.properties.get on self.properties[] 2015-05-13 16:24:12 +03:00