mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-17 20:38:06 +00:00
Bug fixes and documentation (#2694)
This commit is contained in:
@ -14,6 +14,7 @@ import uuid
|
||||
from enum import Enum
|
||||
from shutil import which
|
||||
from typing import Callable, Dict, List, Optional, Tuple, Type, TypeVar
|
||||
from urllib.parse import urlparse
|
||||
from uuid import UUID
|
||||
|
||||
import semver
|
||||
@ -1268,6 +1269,16 @@ class Pool(Endpoint):
|
||||
if pool.config is None:
|
||||
raise Exception("Missing AgentConfig in response")
|
||||
|
||||
config = pool.config
|
||||
if not pool.managed:
|
||||
config.client_credentials = models.ClientCredentials( # nosec
|
||||
client_id=uuid.UUID(int=0),
|
||||
client_secret="<client_secret>",
|
||||
resource=self.onefuzz._backend.config.endpoint,
|
||||
tenant=urlparse(self.onefuzz._backend.config.authority).path.strip("/"),
|
||||
multi_tenant_domain=self.onefuzz._backend.config.tenant_domain,
|
||||
)
|
||||
|
||||
return pool.config
|
||||
|
||||
def shutdown(self, name: str, *, now: bool = False) -> responses.BoolResult:
|
||||
|
Reference in New Issue
Block a user