mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-17 12:28:07 +00:00
Fix query to get he existing proxy (#2791)
This commit is contained in:
@ -631,7 +631,6 @@ class Client:
|
||||
|
||||
# Add --custom_domain value to Allowed token audiences setting
|
||||
if self.custom_domain:
|
||||
|
||||
if self.multi_tenant_domain != "":
|
||||
root_domain = self.multi_tenant_domain
|
||||
else:
|
||||
@ -776,7 +775,6 @@ class Client:
|
||||
logger.info("parsing config: %s", self.config)
|
||||
|
||||
if self.config:
|
||||
|
||||
with open(self.config, "r") as template_handle:
|
||||
config_template = json.load(template_handle)
|
||||
|
||||
|
@ -113,7 +113,6 @@ class Config:
|
||||
self.allowed_service_tags = proxy_config["allowed_service_tags"]
|
||||
|
||||
def parse_endpoint_json(self, config: Any) -> None:
|
||||
|
||||
if "cli_client_id" not in config:
|
||||
raise Exception(
|
||||
"CLI client_id not provided as valid key. Please Provide Valid Config."
|
||||
@ -241,7 +240,6 @@ def update_admins(config_client: InstanceConfigClient, admins: List[UUID]) -> No
|
||||
|
||||
|
||||
def parse_rules(proxy_config: Config) -> List[NsgRule]:
|
||||
|
||||
allowed_ips = proxy_config.allowed_ips
|
||||
allowed_service_tags = proxy_config.allowed_service_tags
|
||||
|
||||
|
@ -382,7 +382,6 @@ def add_application_password(
|
||||
def add_application_password_impl(
|
||||
password_name: str, app_object_id: UUID, subscription_id: str
|
||||
) -> Tuple[str, str]:
|
||||
|
||||
app = query_microsoft_graph(
|
||||
method="GET",
|
||||
resource="applications/%s" % app_object_id,
|
||||
|
Reference in New Issue
Block a user