MCPcopy Create free account
hub / github.com/saltstack/salt / _parse_env

Function _parse_env

salt/modules/cmdmod.py:207–214  ·  view source on GitHub ↗
(env)

Source from the content-addressed store, hash-verified

205
206
207def _parse_env(env):
208 if not env:
209 env = {}
210 if isinstance(env, list):
211 env = salt.utils.data.repack_dictlist(env)
212 if not isinstance(env, dict):
213 env = {}
214 return env
215
216
217def _ensure_env_str(env):

Callers 3

installFunction · 0.90
_uninstallFunction · 0.90
_runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected