Browse Source

Fix VBoxManage command call in slave-nodes-...sh

Fix VBoxManage comman call in slave-nodes-create-and-boot.sh
Related-Bug: 1498894
Change-Id: I91b0b93bf49e6025301624ed4ce7bbc64b2d2955
Vasiliy Pleshakov 3 years ago
parent
commit
91d01e01ee
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      actions/slave-nodes-create-and-boot.sh

+ 2
- 2
actions/slave-nodes-create-and-boot.sh View File

@@ -50,8 +50,8 @@ for idx in $(eval echo {1..$cluster_size}); do
50 50
   add_disk_to_vm $name 2 $vm_slave_third_disk_mb
51 51
 
52 52
   #add NIC1 MAC to description
53
-  mac=$(execute vboxmanage showvminfo $name |awk -F ': ' '$1~/NIC 1/ {mac=gensub(/^.+ MAC: ([0-9A-F]{12}).+$/,"\\1","g",$0);print mac}')
54
-  execute vboxmanage modifyvm $name --description $mac
53
+  mac=$(execute VBoxManage showvminfo $name |awk -F ': ' '$1~/NIC 1/ {mac=gensub(/^.+ MAC: ([0-9A-F]{12}).+$/,"\\1","g",$0);print mac}')
54
+  execute VBoxManage modifyvm $name --description $mac
55 55
 
56 56
   #add RDP connection
57 57
   if [ ${headless} -eq 1 ]; then

Loading…
Cancel
Save