MCPcopy Create free account
hub / github.com/StackStorm/st2 / get_config

Function get_config

st2common/st2common/util/config_loader.py:420–434  ·  view source on GitHub ↗

Returns config for given pack and user.

(pack, user)

Source from the content-addressed store, hash-verified

418
419
420def get_config(pack, user):
421 """Returns config for given pack and user."""
422 LOG.debug('Attempting to get config for pack "%s" and user "%s"' % (pack, user))
423 if pack and user:
424 LOG.debug("Pack and user found. Loading config.")
425 config_loader = ContentPackConfigLoader(pack_name=pack, user=user)
426
427 config = config_loader.get_config()
428
429 else:
430 config = {}
431
432 LOG.debug("Config: %s", config)
433
434 return config

Callers 4

_resolve_paramsMethod · 0.90
test_get_configMethod · 0.90
render_live_paramsFunction · 0.90
render_final_paramsFunction · 0.90

Calls 2

get_configMethod · 0.95

Tested by 1

test_get_configMethod · 0.72