From 5313eed7daf0ba24b8d75bd388eb66ffbd5dc301 Mon Sep 17 00:00:00 2001 From: Michael Hanselmann Date: Wed, 15 Sep 2010 21:39:05 +0200 Subject: [PATCH] =?utf8?q?rlib2:=20Set=20tag=20operation=20param=20=E2=80=9C?= =?utf8?q?name=E2=80=9D=20to=20None=20for=20cluster=20tags?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Otherwise parameter verification in the master daemon fails. Signed-off-by: Michael Hanselmann Reviewed-by: Iustin Pop --- lib/rapi/rlib2.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/rapi/rlib2.py b/lib/rapi/rlib2.py index b7e9b9b..eed9640 100644 --- a/lib/rapi/rlib2.py +++ b/lib/rapi/rlib2.py @@ -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. -- 1.7.10.4