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

Method load

systemvm/debian/opt/cloud/bin/cs/CsFile.py:30–40  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

28 self.load()
29
30 def load(self):
31 self.new_config = []
32 self.config = []
33 try:
34 for line in open(self.filename):
35 self.new_config.append(line)
36 except IOError:
37 logging.debug("File %s does not exist" % self.filename)
38 else:
39 logging.debug("Reading file %s" % self.filename)
40 self.config = list(self.new_config)
41
42 def is_changed(self):
43 if set(self.config) != set(self.new_config):

Callers 2

__init__Method · 0.95
__init__Method · 0.45

Calls 2

debugMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected