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

Method add

systemvm/debian/opt/cloud/bin/cs/CsFile.py:89–97  ·  view source on GitHub ↗
(self, string, where=-1)

Source from the content-addressed store, hash-verified

87 self.new_config.insert(where, "%s\n" % string)
88
89 def add(self, string, where=-1):
90 for index, line in enumerate(self.new_config):
91 if line.strip() == string:
92 return False
93 if where == -1:
94 self.new_config.append("%s\n" % string)
95 else:
96 self.new_config.insert(where, "%s\n" % string)
97 return True
98
99 def section(self, start, end, content):
100 sind = -1

Callers 7

configure_ipsecMethod · 0.95
add_l2tp_ipsec_userMethod · 0.95
_redundant_onMethod · 0.95
write_hostsMethod · 0.95

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected