From a07d57f3cdb32434232192e75e291418fccaa2ed Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Tue, 16 Apr 2024 20:55:07 -0400 Subject: [PATCH] test/includes/microcloud: less subshells Signed-off-by: Simon Deziel --- microcloud/test/includes/microcloud.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/microcloud/test/includes/microcloud.sh b/microcloud/test/includes/microcloud.sh index 5de3de5dc..3d5f226c5 100644 --- a/microcloud/test/includes/microcloud.sh +++ b/microcloud/test/includes/microcloud.sh @@ -189,7 +189,7 @@ validate_system_microovn() { echo "==> ${name} Validating MicroOVN" lxc remote switch local - lxc exec "${name}" -- sh -ceu "microovn cluster list | grep -q ${name}" + lxc exec "${name}" -- microovn cluster list | grep -q "${name}" } # validate_system_lxd_zfs: Ensures the node with the given name has the given disk set up for ZFS storage. @@ -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 "local:${name}" -- sh -c "lxc network get UPLINK dns.nameservers") + dns_addresses=$(lxc exec "local:${name}" -- 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