X-Git-Url: https://code.grnet.gr/git/ganeti-local/blobdiff_plain/4b7735f913d2c5ca556098f5a33f849e667f4f16..da961187f97344fde390140ebb2f10d10d334d51:/lib/objects.py diff --git a/lib/objects.py b/lib/objects.py index abfeff1..aebe959 100644 --- a/lib/objects.py +++ b/lib/objects.py @@ -50,7 +50,7 @@ class ConfigObject(object): as None instead of raising an error Classes derived from this must always declare __slots__ (we use many - config objects and the memory reduction is useful. + config objects and the memory reduction is useful) """ __slots__ = [] @@ -179,7 +179,7 @@ class TaggableObject(ConfigObject): constants.MAX_TAG_LEN) if not tag: raise errors.TagError("Tags cannot be empty") - if not re.match("^[ \w.+*/:-]+$", tag): + if not re.match("^[\w.+*/:-]+$", tag): raise errors.TagError("Tag contains invalid characters") def GetTags(self): @@ -472,6 +472,7 @@ class Disk(ConfigObject): if self.dev_type == constants.LD_LV: val = "