Revision a81075bf
b/lib/cmdlib.py | ||
---|---|---|
1039 | 1039 |
if msg is None: |
1040 | 1040 |
msg = "can't use instance from outside %s states" % ", ".join(req_states) |
1041 | 1041 |
if instance.admin_state not in req_states: |
1042 |
raise errors.OpPrereqError("Instance %s is marked to be %s, %s" %
|
|
1043 |
(instance, instance.admin_state, msg), |
|
1042 |
raise errors.OpPrereqError("Instance '%s' is marked to be %s, %s" %
|
|
1043 |
(instance.name, instance.admin_state, msg),
|
|
1044 | 1044 |
errors.ECODE_STATE) |
1045 | 1045 |
|
1046 | 1046 |
if constants.ADMINST_UP not in req_states: |
Also available in: Unified diff