mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-17 20:38:06 +00:00
Bug fixes related to the unmanaged nodes (#2632)
* bug fixes related to the unmanaged nodes - fix the token request in the client - adding a is_unmnaged field to the agentConfig - fix typo in the appId claim type - fix typo in the UnmanagedNode claim value - fix query PoolOperation.GetByClientId * remove unused import * build fix * change unmanaged field to managed * Apply suggestions from code review Co-authored-by: Teo Voinea <58236992+tevoinea@users.noreply.github.com> Co-authored-by: Teo Voinea <58236992+tevoinea@users.noreply.github.com>
This commit is contained in:
@ -1268,13 +1268,7 @@ class Pool(Endpoint):
|
||||
if pool.config is None:
|
||||
raise Exception("Missing AgentConfig in response")
|
||||
|
||||
config = pool.config
|
||||
config.client_credentials = models.ClientCredentials( # nosec - bandit consider this a hard coded password
|
||||
client_id=pool.client_id,
|
||||
client_secret="<client secret>",
|
||||
)
|
||||
|
||||
return config
|
||||
return pool.config
|
||||
|
||||
def shutdown(self, name: str, *, now: bool = False) -> responses.BoolResult:
|
||||
expanded_name = self._disambiguate(
|
||||
|
Reference in New Issue
Block a user