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

Method addeq

systemvm/debian/opt/cloud/bin/cs/CsFile.py:75–81  ·  view source on GitHub ↗

Update a line in a file of the form token=something match on token= and replace something if needed Add line if token is not present

(self, string)

Source from the content-addressed store, hash-verified

73 print(line)
74
75 def addeq(self, string):
76 """ Update a line in a file of the form token=something
77 match on token= and replace something if needed
78 Add line if token is not present
79 """
80 token = string.split('=')[0] + '='
81 self.search(token, string)
82
83 def append(self, string, where=-1):
84 if where == -1:

Callers 2

configure_ipsecMethod · 0.95
configure_l2tpIpsecMethod · 0.95

Calls 1

searchMethod · 0.95

Tested by

no test coverage detected