summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
6bdaf01)
All tags that have category "slice/rspec" should be displayed in the RSPec. Fixed an
issue where not all such tags would be displayed.
Use with tags that have only one instance
"""
def get_tag(self, tagname, node = None):
Use with tags that have only one instance
"""
def get_tag(self, tagname, node = None):
- try:
- for i in self.slice_tag_ids:
+ for i in self.slice_tag_ids:
+ try:
tag = self.network.lookupSliceTag(i)
if tag.tagname == tagname:
if node:
tag = self.network.lookupSliceTag(i)
if tag.tagname == tagname:
if node:
return tag
elif not tag.node_id:
return tag
return tag
elif not tag.node_id:
return tag
- except InvalidRSpec, e:
- # As they're not needed, we ignore some tag types from
- # GetSliceTags call. See Slicetag.ignore_tags
- pass
+ except InvalidRSpec, e:
+ # As they're not needed, we ignore some tag types from
+ # GetSliceTags call. See Slicetag.ignore_tags
+ pass
return None
def get_nodes(self):
return None
def get_nodes(self):