Correct problem in a awk command
This commit is contained in:
parent
4f6aeb0b6b
commit
64d591a266
|
@ -447,7 +447,7 @@ if [ "${VM_DISK_EXTEND}" -ne 0 ]; then
|
|||
|
||||
echo "INFO : Add new PV to default VG... (vgextend <defaultVG> /dev/vda4)"
|
||||
|
||||
ssh ${SSH_OPT} ${SSH_HOST} 'vgextend $(vgs | awk "/vg/ {print $1}") /dev/vda4' &> /dev/null
|
||||
ssh ${SSH_OPT} ${SSH_HOST} 'vgextend $(vgs | grep vg | tr -s " " | cut -d" " -f2) /dev/vda4' &> /dev/null
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo 'ERROR : problem during add new PV in VG, please finish manually the deploy OR delete VM and IPAM information'
|
||||
|
|
Loading…
Reference in a new issue