Revision 6ec77900 lib/cmdlib.py
b/lib/cmdlib.py | ||
---|---|---|
3296 | 3296 |
if not isinstance(result.payload, list): |
3297 | 3297 |
errs.append("command 'health' is expected to return a list but got %s" % |
3298 | 3298 |
type(result.payload)) |
3299 |
for item, status in result.payload: |
|
3300 |
if status not in constants.OOB_STATUSES: |
|
3301 |
errs.append("health item '%s' has invalid status '%s'" % |
|
3302 |
(item, status)) |
|
3299 |
else: |
|
3300 |
for item, status in result.payload: |
|
3301 |
if status not in constants.OOB_STATUSES: |
|
3302 |
errs.append("health item '%s' has invalid status '%s'" % |
|
3303 |
(item, status)) |
|
3303 | 3304 |
|
3304 | 3305 |
if self.op.command == constants.OOB_POWER_STATUS: |
3305 | 3306 |
if not isinstance(result.payload, dict): |
Also available in: Unified diff