This is an automated email from the ASF dual-hosted git repository.
dahn pushed a commit to branch 4.22
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.22 by this push:
new 223fc2512ce Enhance NFS mount option check for empty response (#11839)
223fc2512ce is described below
commit 223fc2512ce64a5f1165bfa68b0dfec61f043169
Author: dahn <[email protected]>
AuthorDate: Tue Dec 9 10:51:42 2025 +0100
Enhance NFS mount option check for empty response (#11839)
---
.../component/maint/test_primary_storage_nfsmountopts_kvm.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/test/integration/component/maint/test_primary_storage_nfsmountopts_kvm.py
b/test/integration/component/maint/test_primary_storage_nfsmountopts_kvm.py
index f2ad18188ca..21aee0cc717 100644
--- a/test/integration/component/maint/test_primary_storage_nfsmountopts_kvm.py
+++ b/test/integration/component/maint/test_primary_storage_nfsmountopts_kvm.py
@@ -110,7 +110,7 @@ class TestNFSMountOptsKVM(cloudstackTestCase):
def getNFSMountOptionForPool(self, option, poolId):
nfsstat_cmd = "nfsstat -m | sed -n '/%s/{ n; p }'" % poolId
nfsstat = self.sshClient.execute(nfsstat_cmd)
- if (nfsstat == None):
+ if nfsstat == None or len(nfsstat) == 0:
return None
stat = nfsstat[0]
vers = stat[stat.find(option):].split("=")[1].split(",")[0]