MCPcopy Index your code
hub / github.com/feast-dev/feast / include_auth_config

Function include_auth_config

sdk/python/tests/utils/auth_permissions_util.py:20–30  ·  view source on GitHub ↗
(file_path, auth_config: str)

Source from the content-addressed store, hash-verified

18
19
20def include_auth_config(file_path, auth_config: str):
21 with open(file_path, "r") as file:
22 existing_content = yaml.safe_load(file)
23 new_section = yaml.safe_load(auth_config)
24 if isinstance(existing_content, dict) and isinstance(new_section, dict):
25 existing_content.update(new_section)
26 else:
27 raise ValueError("Both existing content and new section must be dictionaries.")
28 with open(file_path, "w") as file:
29 yaml.safe_dump(existing_content, file, default_flow_style=False)
30 print(f"Updated auth section at {file_path}")
31
32
33def default_store(

Callers 2

setupMethod · 0.90
default_storeFunction · 0.85

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected