Example #1
0
 def update_resource(self, ctx: HandlerContext, changes: dict,
                     resource: AgentConfig) -> None:
     agent_config = ctx.get("map")
     agent_config[resource.agentname] = resource.uri
     self._set_map(agent_config)
Example #2
0
 def delete_resource(self, ctx: HandlerContext,
                     resource: AgentConfig) -> None:
     agent_config = ctx.get("map")
     del agent_config[resource.agentname]
     self._set_map(agent_config)