MCPcopy Index your code
hub / github.com/robusta-dev/krr / add_resource_value

Function add_resource_value

enforcer/patch_manager.py:132–135  ·  view source on GitHub ↗
(resources: Dict[str, Any], resource_type: str, resource_name: str, resource_value: Any)

Source from the content-addressed store, hash-verified

130
131
132def add_resource_value(resources: Dict[str, Any], resource_type: str, resource_name: str, resource_value: Any) -> None:
133 if resource_type not in resources:
134 resources[resource_type] = {}
135 resources[resource_type][resource_name] = str(resource_value)
136
137
138def get_updated_resources(resources: Dict[str, Any], recommendation: ContainerRecommendation) -> Dict[str, Any]:

Callers 1

get_updated_resourcesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected