mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-14 11:08:06 +00:00
use flake8 on deployment (#1286)
All of the rest of the python codebases within the repo use flake8 as part of the lint process. This aligns the deployment code with the practice. Co-authored-by: Brian Caswell <bmc@shmoo.com>
This commit is contained in:
@ -252,8 +252,9 @@ class Client:
|
||||
return add_application_password(object_id, self.get_subscription_id())
|
||||
|
||||
def get_instance_url(self) -> str:
|
||||
## The url to access the instance
|
||||
## This also represents the legacy identifier_uris of the application registration
|
||||
# The url to access the instance
|
||||
# This also represents the legacy identifier_uris of the application
|
||||
# registration
|
||||
if self.multi_tenant_domain:
|
||||
return "https://%s/%s" % (
|
||||
self.multi_tenant_domain,
|
||||
@ -263,10 +264,11 @@ class Client:
|
||||
return "https://%s.azurewebsites.net" % self.application_name
|
||||
|
||||
def get_identifier_url(self) -> str:
|
||||
## The used to identify the application registration via the identifier_uris field
|
||||
## Depending on the environment this value needs to be from an approved domain
|
||||
## The format of this value is derived from the default value proposed by azure when creating
|
||||
## an application registration api://{guid}/...
|
||||
# This is used to identify the application registration via the
|
||||
# identifier_uris field. Depending on the environment this value needs
|
||||
# to be from an approved domain The format of this value is derived
|
||||
# from the default value proposed by azure when creating an application
|
||||
# registration api://{guid}/...
|
||||
if self.multi_tenant_domain:
|
||||
return "api://%s/%s" % (
|
||||
self.multi_tenant_domain,
|
||||
@ -275,7 +277,7 @@ class Client:
|
||||
else:
|
||||
return "api://%s.azurewebsites.net" % self.application_name
|
||||
|
||||
def setup_rbac(self) -> None:
|
||||
def setup_rbac(self) -> None: # noqa: C901
|
||||
"""
|
||||
Setup the client application for the OneFuzz instance.
|
||||
By default, Service Principals do not have access to create
|
||||
|
Reference in New Issue
Block a user