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

Method __init__

systemvm/debian/opt/cloud/bin/cs/CsDatabag.py:24–33  ·  view source on GitHub ↗
(self, key, config=None)

Source from the content-addressed store, hash-verified

22class CsDataBag(object):
23
24 def __init__(self, key, config=None):
25 self.data = {}
26 self.db = DataBag()
27 self.db.setKey(key)
28 self.db.load()
29 self.dbag = self.db.getDataBag()
30 if config:
31 self.fw = config.get_fw()
32 self.cl = config.cmdline()
33 self.config = config
34
35 def dump(self):
36 print(self.dbag)

Callers

nothing calls this directly

Calls 6

DataBagClass · 0.90
getDataBagMethod · 0.80
get_fwMethod · 0.80
cmdlineMethod · 0.80
setKeyMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected