The apmec.api.v1.attributes Module

The apmec.api.v1.attributes Module

apmec.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.
apmec.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).
apmec.api.v1.attributes.convert_none_to_empty_dict(value)
apmec.api.v1.attributes.convert_none_to_empty_list(value)
apmec.api.v1.attributes.convert_to_boolean(data)
apmec.api.v1.attributes.convert_to_int(data)
apmec.api.v1.attributes.convert_to_list(data)
apmec.api.v1.attributes.is_attr_set(attribute)
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.