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

Method readhb

scripts/vm/hypervisor/ovm3/storagehealth.py:52–58  ·  view source on GitHub ↗
(self,file="")

Source from the content-addressed store, hash-verified

50 self.results={}
51
52 def readhb(self,file=""):
53 if os.path.isfile(file):
54 text_file = open("%s" % file, "r")
55 line=text_file.readline()
56 text_file.close()
57 return line
58 return 0
59
60 def writehb(self,file=""):
61 if file:

Callers 1

targetMethod · 0.95

Calls 2

readlineMethod · 0.80
closeMethod · 0.65

Tested by

no test coverage detected