MCPcopy Create free account
hub / github.com/ceph/ceph / normalize_dict

Function normalize_dict

src/ceph-node-proxy/ceph_node_proxy/util.py:140–149  ·  view source on GitHub ↗
(test_dict: Dict)

Source from the content-addressed store, hash-verified

138
139
140def normalize_dict(test_dict: Dict) -> Dict:
141 res = dict()
142 for key in test_dict.keys():
143 if isinstance(test_dict[key], dict):
144 res[key.lower()] = normalize_dict(test_dict[key])
145 else:
146 if test_dict[key] is None:
147 test_dict[key] = "unknown"
148 res[key.lower()] = test_dict[key]
149 return res
150
151
152def retry(

Callers 2

_update_storageMethod · 0.90
build_dataFunction · 0.90

Calls 1

keysMethod · 0.45

Tested by

no test coverage detected