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

Method getEntry

python/lib/cloudutils/configFileOps.py:51–60  ·  view source on GitHub ↗
(self, name, separator="=")

Source from the content-addressed store, hash-verified

49 self.entries.append(entry)
50
51 def getEntry(self, name, separator="="):
52 try:
53 ctx = open(self.fileName).read(-1)
54 match = re.search("^" + name + ".*", ctx, re.MULTILINE)
55 if match is None:
56 return ""
57 line = match.group(0).split(separator, 1)
58 return line[1]
59 except:
60 return ""
61
62 def save(self):
63 newLines = []

Callers 6

configMethod · 0.45
addBridgeMethod · 0.45
addBridgeMethod · 0.45
configMethod · 0.45
configMyCloudMethod · 0.45
configAgentMethod · 0.45

Calls 3

searchMethod · 0.65
readMethod · 0.45
groupMethod · 0.45

Tested by

no test coverage detected