in hostfactory/host_provider/src/util.py [0:0]
def __init__(self, config, jetpack_config=None):
self.config = config
self.logger = init_logging()
if jetpack_config is None:
try:
with open("/opt/cycle/jetpack/config/node.json") as json_file:
jetpack_config = json.load(json_file)
except (FileNotFoundError) as ex:
jetpack_config = {}
self.jetpack_config = jetpack_config