virsh: inactive domains don't have an ID

This commit is contained in:
Vincent Bernat 2014-08-28 16:09:06 +02:00
parent 18330b0137
commit 1bcfd00579
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ local -a args reply
function _virsh-domains() {
local -a out
out=( ${${${${(f)"$(virsh list "$@")"}:#(---| Id)*}## #[0-9]## ##}%% *} )
out=( ${${${${(f)"$(virsh list "$@")"}:#(---| Id)*}## #[0-9-]## ##}%% *} )
_describe -t domains "${${1#--}:-running} domains" out
return $?
}