Loading cloudcontrol/common/client/tags.py +4 −2 Original line number Diff line number Diff line Loading @@ -324,7 +324,8 @@ class TagDB(object): def add_tag(self, tag): if tag.name in self.db['__main__']: raise TagConflict('A tag with the same name is already registered') raise TagConflict( 'A tag with the name %s is already registered' % tag.name) # first add the tag to the child db, in case of conflict in the parent, # the tag is recorded in the child thus if the latter's parent is Loading @@ -345,7 +346,8 @@ class TagDB(object): def add_sub_tag(self, sub_id, tag): if tag.name in self.db[sub_id]: raise TagConflict('A tag with the same name is already registered') raise TagConflict( 'A tag with the name %s is already registered' % tag.name) self.db[sub_id][tag.name] = tag if self._parent is not None: Loading Loading
cloudcontrol/common/client/tags.py +4 −2 Original line number Diff line number Diff line Loading @@ -324,7 +324,8 @@ class TagDB(object): def add_tag(self, tag): if tag.name in self.db['__main__']: raise TagConflict('A tag with the same name is already registered') raise TagConflict( 'A tag with the name %s is already registered' % tag.name) # first add the tag to the child db, in case of conflict in the parent, # the tag is recorded in the child thus if the latter's parent is Loading @@ -345,7 +346,8 @@ class TagDB(object): def add_sub_tag(self, sub_id, tag): if tag.name in self.db[sub_id]: raise TagConflict('A tag with the same name is already registered') raise TagConflict( 'A tag with the name %s is already registered' % tag.name) self.db[sub_id][tag.name] = tag if self._parent is not None: Loading