MCPcopy
hub / github.com/saltstack/salt / get

Method get

salt/features.py:24–33  ·  view source on GitHub ↗
(self, key, default=None)

Source from the content-addressed store, hash-verified

22 log.warning("Features already setup")
23
24 def get(self, key, default=None):
25 import salt.utils.versions
26
27 salt.utils.versions.warn_until(
28 3009,
29 "Please stop checking feature flags using 'salt.features' and instead "
30 "check the 'features' keyword on the configuration dictionary. The "
31 "'salt.features' module will go away in {version}.",
32 )
33 return self.features.get(key, default)
34
35
36features = Features()

Callers 15

noxfile.pyFile · 0.45
_run_with_coverageFunction · 0.45
_ci_testFunction · 0.45
ci_testFunction · 0.45
ci_test_onedirFunction · 0.45
decompress_dependenciesFunction · 0.45
ci_test_onedir_pkgsFunction · 0.45
setup.pyFile · 0.45
finalize_optionsMethod · 0.45
runMethod · 0.45
_property_data_filesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected