Revision 20777413 lib/cmdlib.py
b/lib/cmdlib.py | ||
---|---|---|
56 | 56 |
|
57 | 57 |
Note that all commands require root permissions. |
58 | 58 |
|
59 |
@ivar dry_run_result: the value (if any) that will be returned to the caller |
|
60 |
in dry-run mode (signalled by opcode dry_run parameter) |
|
61 |
|
|
59 | 62 |
""" |
60 | 63 |
HPATH = None |
61 | 64 |
HTYPE = None |
... | ... | |
86 | 89 |
# logging |
87 | 90 |
self.LogWarning = processor.LogWarning |
88 | 91 |
self.LogInfo = processor.LogInfo |
92 |
# support for dry-run |
|
93 |
self.dry_run_result = None |
|
89 | 94 |
|
90 | 95 |
for attr_name in self._OP_REQP: |
91 | 96 |
attr_val = getattr(op, attr_name, None) |
Also available in: Unified diff