From 1fa72f262efafecc5efe21bfcbb77099df935ff9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hozza?= Date: Thu, 25 Jan 2024 15:53:30 +0100 Subject: [PATCH] test/api.sh/vsphere: specify the resource pool for image import MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Specify the resource pool when importing the VMDK to the VCenter. This should prevent the following error: govc: default resource pool resolves to multiple instances, please specify Signed-off-by: Tomáš Hozza --- test/cases/api/common/vsphere.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/test/cases/api/common/vsphere.sh b/test/cases/api/common/vsphere.sh index 6414fc146..a886dec38 100644 --- a/test/cases/api/common/vsphere.sh +++ b/test/cases/api/common/vsphere.sh @@ -137,6 +137,7 @@ function verifyInVSphere() { -u "${GOVMOMI_USERNAME}:${GOVMOMI_PASSWORD}@${GOVMOMI_URL}" \ -k=true \ -dc="${GOVC_DATACENTER}" \ + -pool="${GOVMOMI_CLUSTER}"/Resources \ -ds="${GOVMOMI_DATASTORE}" \ "${WORKDIR}/${VSPHERE_IMAGE_NAME}" \ "${VSPHERE_VM_NAME}"