This commit is contained in:
Atul Bagga 2020-01-22 10:42:40 +05:30
Родитель 8751454c33
Коммит b189825182
4 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -6,7 +6,7 @@
from knack.log import get_logger
from knack.util import CLIError
from azext_aks_deploy.dev.common.git import get_repository_url_from_local_repo, resolve_repository
from azext_aks_deploy.dev.common.git import resolve_repository
from azext_aks_deploy.dev.common.github_api_helper import (Files, get_work_flow_check_runID,
get_languages_for_repo,
get_github_pat_token,
@ -19,7 +19,7 @@ from azext_aks_deploy.dev.common.kubectl import get_deployment_IP_port
from azext_aks_deploy.dev.common.const import (APP_NAME_DEFAULT, APP_NAME_PLACEHOLDER,
ACR_PLACEHOLDER, RG_PLACEHOLDER, PORT_NUMBER_DEFAULT,
CLUSTER_PLACEHOLDER, RELEASE_PLACEHOLDER, RELEASE_NAME)
from azext_aks_deploy.dev.common.prompting import prompt_user_friendly_choice_list, prompt_not_empty
from azext_aks_deploy.dev.common.prompting import prompt_user_friendly_choice_list
from azext_aks_deploy.dev.aks.docker_helm_template import get_docker_templates, get_helm_charts
logger = get_logger(__name__)

Просмотреть файл

@ -56,7 +56,7 @@ def create_acr(registry_name, resource_group, sku):
raise CLIError(ex)
def create_functionapp(app_name, resource_group, show_warning=True):
def create_functionapp(_app_name, _resource_group, show_warning=True):
_subscription_id, subscription_name, _tenant_id, _environment_name = get_default_subscription_info()
if show_warning:
logger.warning('Using your default Azure subscription %s for creating new Azure Container Registry.',

Просмотреть файл

@ -5,12 +5,11 @@
from knack.log import get_logger
from knack.util import CLIError
from azext_aks_deploy.dev.common.git import get_repository_url_from_local_repo, resolve_repository
from azext_aks_deploy.dev.common.git import resolve_repository
from azext_aks_deploy.dev.common.github_api_helper import (Files, get_work_flow_check_runID,
get_languages_for_repo,
get_github_pat_token,
push_files_github,
get_default_branch,
check_file_exists)
from azext_aks_deploy.dev.common.github_workflow_helper import poll_workflow_status
from azext_aks_deploy.dev.common.github_azure_secrets import get_azure_credentials
@ -18,7 +17,8 @@ from azext_aks_deploy.dev.common.github_azure_secrets import get_azure_credentia
logger = get_logger(__name__)
def functionapp_deploy(app_name=None, repository=None, skip_secrets_generation=False, branch_name=None, do_not_wait=False):
def functionapp_deploy(app_name=None, repository=None, skip_secrets_generation=False,
branch_name=None, do_not_wait=False):
"""Setup GitHub Action to build and deploy to Azure FunctionApp
:param repository: GitHub repository URL e.g. https://github.com/azure/azure-cli.
:type repository: str

Просмотреть файл

@ -107,4 +107,4 @@ jobs:
# For more information on GitHub Actions:
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
"""
"""