From 4bd65a8ba88f85301e6383d4ead38abc7f849553 Mon Sep 17 00:00:00 2001 From: Max Asnaashari Date: Mon, 15 Apr 2024 19:04:06 +0000 Subject: [PATCH] microcloud/test/includes: Fix dns validation Signed-off-by: Max Asnaashari --- microcloud/test/includes/microcloud.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/microcloud/test/includes/microcloud.sh b/microcloud/test/includes/microcloud.sh index 1608d0df..fdeb2222 100644 --- a/microcloud/test/includes/microcloud.sh +++ b/microcloud/test/includes/microcloud.sh @@ -275,7 +275,7 @@ validate_system_lxd_ovn() { # Check that the created UPLINK network has the right DNS servers. if [ -n "${dns_namesersers}" ] ; then - dns_addresses=$(lxc exec "${name}" -- sh -c "lxc network get UPLINK dns.nameservers") + dns_addresses=$(lxc exec "local:${name}" -- sh -c "lxc network get UPLINK dns.nameservers") if [ "${dns_addresses}" != "${dns_namesersers}" ] ; then echo "ERROR: UPLINK network has wrong DNS server addresses: ${dns_addresses}" return 1