Commit 2057f6c7 authored by Iustin Pop's avatar Iustin Pop
Browse files

Add __slots__ on TaggableObject

Unless we use __slots__ on all parents, we don't get the benefits that
__slots__ bring. This patch adds this attribute to the TaggableObject so
that Instances, Nodes and the Clusters behave as intended.

Reviewed-by: schreiberal,imsnah
parent 804a1e8e
......@@ -152,6 +152,8 @@ class TaggableObject(object):
"""An generic class supporting tags.
__slots__ = []
def ValidateTag(tag):
"""Check if a tag is valid.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment