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

Method searchString

systemvm/debian/opt/cloud/bin/cs/CsFile.py:151–162  ·  view source on GitHub ↗
(self, search, ignoreLinesStartWith)

Source from the content-addressed store, hash-verified

149 return False
150
151 def searchString(self, search, ignoreLinesStartWith):
152 found = False
153 logging.debug("Searching for %s string " % search)
154
155 for index, line in enumerate(self.new_config):
156 if line.lstrip().startswith(ignoreLinesStartWith):
157 continue
158 if search in line:
159 found = True
160 break
161
162 return found
163
164 def deleteLine(self, search):
165 found = False

Callers 1

add_l2tp_ipsec_userMethod · 0.95

Calls 1

debugMethod · 0.80

Tested by

no test coverage detected