Skip to content

Commit

Permalink
Fix functionapp devops-pipeline create (#4500)
Browse files Browse the repository at this point in the history
* Fix functionapp devops-pipeline create

* Update version
  • Loading branch information
PramodValavala-MSFT authored Mar 16, 2022
1 parent d2674f4 commit 1823627
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion src/functionapp/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
Release History
===============

0.1.1
++++++
* Fix bug when running `az functionapp devops-pipeline create`

0.1.0
++++++
* Initial release.
* Initial release.
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
2 changes: 1 addition & 1 deletion src/functionapp/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# TODO: Confirm this is the right version number you want and it matches your
# HISTORY.rst entry.
VERSION = '0.1.0'
VERSION = '0.1.1'

# The full list of classifiers is available at
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
Expand Down

0 comments on commit 1823627

Please sign in to comment.