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

Function get_entry_multi

salt/utils/openstack/nova.py:211–217  ·  view source on GitHub ↗
(dict_, pairs, raise_error=True)

Source from the content-addressed store, hash-verified

209
210
211def get_entry_multi(dict_, pairs, raise_error=True):
212 for entry in dict_:
213 if all([entry[key] == value for key, value in pairs]):
214 return entry
215 if raise_error is True:
216 raise SaltCloudSystemExit(f"Unable to find {pairs} in {dict_}.")
217 return {}
218
219
220def get_endpoint_url_v3(catalog, service_type, region_name):

Callers

nothing calls this directly

Calls 1

SaltCloudSystemExitClass · 0.90

Tested by

no test coverage detected