def prepare_update_properties(self, json_snippet): ''' Removes any properties which are not update_allowed, then processes as for prepare_properties. ''' p = Properties(self.properties_schema, json_snippet.get('Properties', {}), self._resolve_runtime_data, self.name, self.context) props = dict((k, v) for k, v in p.items() if p.props.get(k).schema.update_allowed) return props
def prepare_update_properties(self, json_snippet): ''' Prepares the property values so that they can be passed directly to the Neutron update call. Removes any properties which are not update_allowed, then processes as for prepare_properties. ''' p = Properties(self.properties_schema, json_snippet.get('Properties', {}), self._resolve_runtime_data, self.name, self.context) update_props = dict((k, v) for k, v in p.items() if p.props.get(k).schema.update_allowed) props = self.prepare_properties(update_props, self.physical_resource_name()) return props
def prepare_update_properties(self, json_snippet): ''' Prepares the property values so that they can be passed directly to the Neutron update call. Removes any properties which are not update_allowed, then processes as for prepare_properties. ''' p = Properties(self.properties_schema, json_snippet.get('Properties', {}), self._resolve_runtime_data, self.name) update_props = dict((k, v) for k, v in p.items() if p.props.get(k).schema.update_allowed) props = self.prepare_properties( update_props, self.physical_resource_name()) return props