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

Function _handle_error

cloudinit/user_data.py:69–73  ·  view source on GitHub ↗
(error_message, source_exception=None)

Source from the content-addressed store, hash-verified

67
68
69def _handle_error(error_message, source_exception=None):
70 if features.ERROR_ON_USER_DATA_FAILURE:
71 raise RuntimeError(error_message) from source_exception
72 else:
73 LOG.warning(error_message)
74
75
76class UserDataProcessor:

Callers 2

_process_msgMethod · 0.70
_do_includeMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected