diff --git a/quantum/api/v2/attributes.py b/quantum/api/v2/attributes.py index 203f0d54d3..8cda1eee55 100644 --- a/quantum/api/v2/attributes.py +++ b/quantum/api/v2/attributes.py @@ -289,6 +289,11 @@ def convert_kvp_list_to_dict(kvp_list): kvp_map[key].add(value) return dict((x, list(y)) for x, y in kvp_map.iteritems()) + +def convert_none_to_empty_list(value): + return [] if value is None else value + + HOSTNAME_PATTERN = ("(?=^.{1,254}$)(^(?:(?!\d+\.|-)[a-zA-Z0-9_\-]" "{1,63}(?