MCPcopy Create free account
hub / github.com/canonical/cloud-init / _get_include_once_filename

Method _get_include_once_filename

cloudinit/user_data.py:194–198  ·  view source on GitHub ↗
(self, entry)

Source from the content-addressed store, hash-verified

192 pass
193
194 def _get_include_once_filename(self, entry):
195 entry_fn = util.hash_blob(entry, "md5", 64)
196 return os.path.join(
197 self.paths.get_ipath_cur("data"), "urlcache", entry_fn
198 )
199
200 def _process_before_attach(self, msg, attached_id):
201 if not msg.get_filename():

Callers 1

_do_includeMethod · 0.95

Calls 1

get_ipath_curMethod · 0.45

Tested by

no test coverage detected