shell_scripts: Fix reporting of VM IP addresses #9
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "mirsal/capsul-flask:ipv6"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The shell script which gets information 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
happens to output that one first.
This commit changes it to explicitely match the first ipv4 address instead.