Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix functionapp devops-pipeline create #4500

Merged
merged 2 commits into from
Mar 16, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
)
from azure.cli.command_modules.appservice.custom import (
list_function_app,
show_functionapp,
show_webapp,
get_app_settings)
from azure.cli.command_modules.appservice.utils import str2bool
from .azure_devops_build_provider import AzureDevopsBuildProvider
Expand Down Expand Up @@ -242,7 +242,7 @@ def process_functionapp(self):
else:
functionapp = self.cmd_selector.cmd_functionapp(self.functionapp_name)

kinds = show_functionapp(self.cmd, functionapp.resource_group, functionapp.name).kind.split(',')
kinds = show_webapp(self.cmd, functionapp.resource_group, functionapp.name).kind.split(',')

# Get functionapp settings in Azure
app_settings = get_app_settings(self.cmd, functionapp.resource_group, functionapp.name)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def test_github_prechecks(self, _find_github_repository_runtime_language, check_
self._client.pre_checks_github()

@patch(interactive_patch_path("get_app_settings"), MagicMock())
@patch(interactive_patch_path("show_functionapp"), MagicMock())
@patch(interactive_patch_path("show_webapp"), MagicMock())
@patch(interactive_patch_path("AzureDevopsBuildInteractive._find_type"), MagicMock())
@patch(interactive_patch_path("AzureDevopsBuildInteractive._get_functionapp_runtime_language"), MagicMock())
@patch(interactive_patch_path("AzureDevopsBuildInteractive._get_functionapp_storage_name"), MagicMock())
Expand Down