Commit 5313eed7 authored by Michael Hanselmann's avatar Michael Hanselmann

rlib2: Set tag operation param “name” to None for cluster tags

Otherwise parameter verification in the master daemon fails.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent a025e535
......@@ -1122,10 +1122,10 @@ class _R_Tags(baserlib.R_Generic):
"""
baserlib.R_Generic.__init__(self, items, queryargs, req)
if self.TAG_LEVEL != constants.TAG_CLUSTER:
self.name = items[0]
if self.TAG_LEVEL == constants.TAG_CLUSTER:
self.name = None
else:
self.name = ""
self.name = items[0]
def GET(self):
"""Returns a list of tags.
......
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