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

Function get_node_proxy_config

src/ceph-node-proxy/ceph_node_proxy/config.py:73–81  ·  view source on GitHub ↗
(
    path: Optional[str] = None,
    defaults: Optional[Dict[str, Any]] = None,
)

Source from the content-addressed store, hash-verified

71
72
73def get_node_proxy_config(
74 path: Optional[str] = None,
75 defaults: Optional[Dict[str, Any]] = None,
76) -> Config:
77 effective_path = path or os.environ.get(
78 "NODE_PROXY_CONFIG", "/etc/ceph/node-proxy.yml"
79 )
80 assert effective_path is not None
81 return Config(effective_path, defaults=defaults or DEFAULTS)

Callers 1

Calls 2

ConfigClass · 0.90
getMethod · 0.45

Tested by

no test coverage detected