The tacker.api.v1.attributes Module¶
-
tacker.api.v1.attributes.convert_kvp_list_to_dict(kvp_list)¶ Convert a list of ‘key=value’ strings to a dict.
Raises: n_exc.InvalidInput – if any of the strings are malformed (e.g. do not contain a key) or if any of the keys appear more than once.
-
tacker.api.v1.attributes.convert_kvp_str_to_list(data)¶ Convert a value of the form ‘key=value’ to [‘key’, ‘value’].
Raises: n_exc.InvalidInput – if any of the strings are malformed (e.g. do not contain a key).
-
tacker.api.v1.attributes.convert_none_to_empty_dict(value)¶
-
tacker.api.v1.attributes.convert_none_to_empty_list(value)¶
-
tacker.api.v1.attributes.convert_to_boolean(data)¶
-
tacker.api.v1.attributes.convert_to_int(data)¶
-
tacker.api.v1.attributes.convert_to_list(data)¶
-
tacker.api.v1.attributes.is_attr_set(attribute)¶