Revision c37bb2c6
b/lib/client/gnt_instance.py | ||
---|---|---|
217 | 217 |
cl = GetClient() |
218 | 218 |
inames = _ExpandMultiNames(opts.multi_mode, args, client=cl) |
219 | 219 |
if not inames: |
220 |
if opts.multi_mode == _SHUTDOWN_CLUSTER: |
|
221 |
ToStdout("Cluster is empty, no instances to shutdown") |
|
222 |
return 0 |
|
220 | 223 |
raise errors.OpPrereqError("Selection filter does not match" |
221 | 224 |
" any instances", errors.ECODE_INVAL) |
222 | 225 |
multi_on = opts.multi_mode != _SHUTDOWN_INSTANCES or len(inames) > 1 |
Also available in: Unified diff