def _store_config_default_properties(self, attributes=None): """Method for storing default values of properties in resource data. Some properties have default values, specified in project configuration file, so cannot be hardcoded into properties_schema, but should be stored for further using. So need to get created resource and take required property's value. """ if attributes is None: attributes = self._show_resource() if attributes.get('volume_type') is not None: self.data_set(self.VOLUME_TYPE, attributes['volume_type']) else: self.data_delete(self.VOLUME_TYPE)