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:
Cheick Keita
2022-11-17 12:51:52 -08:00
committed by GitHub
parent 5bc3dac1ae
commit 1f46388e6d
11 changed files with 37 additions and 29 deletions

View File

@ -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(