Redirect STDOUT to STDERR in virsh script
KRM framework need only valid yaml in STDOUT otherwise must redirect to STDOUT. Change-Id: I89ac1c0622a542b3906eaf65cb94bf946239518f Relates-To: #517
This commit is contained in:
parent
c8d9160fe2
commit
4d56bccd44
@ -23,7 +23,7 @@ if type "virsh" > /dev/null; then
|
||||
virsh domblklist $vm |
|
||||
awk 'NF==2 {print $1}' |
|
||||
grep -v Target |
|
||||
xargs -I{} virsh change-media $vm {} --eject || : 1>&2
|
||||
xargs -I{} virsh change-media $vm {} --eject 1>&2 || : 1>&2
|
||||
done
|
||||
else
|
||||
echo "Can't find virsh" 1>&2
|
||||
|
Loading…
Reference in New Issue
Block a user