MCPcopy Create free account
hub / github.com/apache/cloudstack / nfsoutput

Method nfsoutput

scripts/vm/hypervisor/ovm3/storagehealth.py:72–78  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

70
71 """ We only want mounted nfs filesystems """
72 def nfsoutput(self):
73 command="mount -v -t nfs"
74 p=subprocess.Popen(command, shell=True, stdout=subprocess.PIPE)
75 lines=map(lambda line: line.split()[2], p.stdout.readlines())
76 test=re.compile("^%s" % (primary))
77 lines=filter(test.search, lines)
78 return lines
79
80 """
81 The main run for all checks we do,

Callers 1

targetMethod · 0.95

Calls 3

mapFunction · 0.85
filterFunction · 0.85
readlinesMethod · 0.80

Tested by

no test coverage detected