Revision bcd35e09
b/lib/cli.py | ||
---|---|---|
412 | 412 |
raise errors.ProgrammerError("tag_type not passed to _ExtractTagsObject") |
413 | 413 |
kind = opts.tag_type |
414 | 414 |
if kind == constants.TAG_CLUSTER: |
415 |
retval = kind, kind
|
|
415 |
retval = kind, None
|
|
416 | 416 |
elif kind in (constants.TAG_NODEGROUP, |
417 | 417 |
constants.TAG_NODE, |
418 | 418 |
constants.TAG_INSTANCE): |
b/lib/opcodes.py | ||
---|---|---|
1815 | 1815 |
OP_PARAMS = [ |
1816 | 1816 |
_PTagKind, |
1817 | 1817 |
_PTags, |
1818 |
# Name is only meaningful for nodes and instances |
|
1818 |
# Name is only meaningful for groups, nodes and instances
|
|
1819 | 1819 |
("name", ht.NoDefault, ht.TMaybeString, |
1820 | 1820 |
"Name of object where tag(s) should be added"), |
1821 | 1821 |
] |
... | ... | |
1827 | 1827 |
OP_PARAMS = [ |
1828 | 1828 |
_PTagKind, |
1829 | 1829 |
_PTags, |
1830 |
# Name is only meaningful for nodes and instances |
|
1830 |
# Name is only meaningful for groups, nodes and instances
|
|
1831 | 1831 |
("name", ht.NoDefault, ht.TMaybeString, |
1832 | 1832 |
"Name of object where tag(s) should be deleted"), |
1833 | 1833 |
] |
Also available in: Unified diff