Package ganeti :: Module cmdlib :: Class LUDelTags
[hide private]
[frames] | no frames]

Class LUDelTags

source code


Delete a list of tags from a given object.

Instance Methods [hide private]
 
CheckPrereq(self)
Check prerequisites.
source code
 
Exec(self, feedback_fn)
Remove the tag from the object.
source code

Inherited from TagsLU: ExpandNames

Inherited from NoHooksLU: BuildHooksEnv

Inherited from LogicalUnit: CheckArguments, DeclareLocks, HooksCallBack, __init__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  _OP_PARAMS = [("kind", _NoDefault, _TElemOf(constants.VALID_TA...
a list of opcode attributes, their defaults values they should get if not already defined, and types they must match
  REQ_BGL = False

Inherited from NoHooksLU: HPATH, HTYPE

Inherited from LogicalUnit: ssh

Instance Variables [hide private]

Inherited from LogicalUnit: dry_run_result

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

CheckPrereq(self)

source code 

Check prerequisites.

This checks that we have the given tag.

Overrides: LogicalUnit.CheckPrereq

Exec(self, feedback_fn)

source code 

Remove the tag from the object.

Overrides: LogicalUnit.Exec

Class Variable Details [hide private]

_OP_PARAMS

a list of opcode attributes, their defaults values they should get if not already defined, and types they must match
Value:
[("kind", _NoDefault, _TElemOf(constants.VALID_TAG_TYPES)), ("name", _\
NoDefault, _TMaybeString), ("tags", _NoDefault, _TListOf(_TNonEmptyStr\
ing)),]