Skip to content

Commit

Permalink
microcloud/test/includes: Fix dns validation
Browse files Browse the repository at this point in the history
Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
  • Loading branch information
masnax committed Apr 17, 2024
1 parent e65cee7 commit c4f7ac8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion microcloud/test/includes/microcloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c4f7ac8

Please sign in to comment.