shell_scripts: Fix reporting of VM IP addresses #9

Merged
3wordchant merged 1 commits from mirsal/capsul-flask:ipv6 into master 2021-08-04 10:13:45 +00:00

1 Commits

Author SHA1 Message Date
mirsal d9f3e68278 shell_scripts: Fix reporting of VM IP addresses
continuous-integration/drone/pr Build is failing Details
The shell script which gets informations from libvirt incorrectly
matches virsh output lines which contain VMs' public IPv4 addresses.
It doesn't work when there are multiple address families which breaks
reporting of IPv4 address when a VM also has an IPv6 address and virsh
happen to output that one first.

This commit changes it to explicitely match the first ipv4 address instead.
2021-08-04 00:56:55 +00:00