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

Method setdefault

salt/utils/secret.py:140–141  ·  view source on GitHub ↗
(self, key, default=None)

Source from the content-addressed store, hash-verified

138 return MaskedDict({k: copy.deepcopy(v, memo) for k, v in dict.items(self)})
139
140 def setdefault(self, key, default=None):
141 return dict.setdefault(self, key, _mask_wrap(default))
142
143
144class MaskedList(list):

Callers 15

_reconcile_watch_reqMethod · 0.45
_allow_aggregateMethod · 0.45
callMethod · 0.45
_check_requisitesMethod · 0.45
_handle_extendMethod · 0.45
_handle_excludeMethod · 0.45
merge_included_statesMethod · 0.45
fill_bucketsMethod · 0.45
list_matchMethod · 0.45
dict_matchMethod · 0.45
fingerMethod · 0.45
_return_pub_multiMethod · 0.45

Calls 1

_mask_wrapFunction · 0.85

Tested by 15

test_man_pagesFunction · 0.36
_by_cmdFunction · 0.36
_add_dataFunction · 0.36
_add_dataFunction · 0.36
_add_dataFunction · 0.36
test_list_pkgsFunction · 0.36
test_list_pkgs_as_listFunction · 0.36
optsFunction · 0.36