Skip to content

Commit 223fc25

Browse files
authored
Enhance NFS mount option check for empty response (#11839)
1 parent 12f4321 commit 223fc25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/integration/component/maint/test_primary_storage_nfsmountopts_kvm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def getUnusedNFSVersions(self, filter):
110110
def getNFSMountOptionForPool(self, option, poolId):
111111
nfsstat_cmd = "nfsstat -m | sed -n '/%s/{ n; p }'" % poolId
112112
nfsstat = self.sshClient.execute(nfsstat_cmd)
113-
if (nfsstat == None):
113+
if nfsstat == None or len(nfsstat) == 0:
114114
return None
115115
stat = nfsstat[0]
116116
vers = stat[stat.find(option):].split("=")[1].split(",")[0]

0 commit comments

Comments
 (0)