diff --git a/src/functionapp/HISTORY.rst b/src/functionapp/HISTORY.rst index 5838cb2bb15..b538dfa6340 100644 --- a/src/functionapp/HISTORY.rst +++ b/src/functionapp/HISTORY.rst @@ -3,6 +3,10 @@ Release History =============== +0.1.1 +++++++ +* Fix bug when running `az functionapp devops-pipeline create` + 0.1.0 ++++++ -* Initial release. \ No newline at end of file +* Initial release. diff --git a/src/functionapp/azext_functionapp/azure_devops_build_interactive.py b/src/functionapp/azext_functionapp/azure_devops_build_interactive.py index ce5f5694bfa..815e4feca48 100644 --- a/src/functionapp/azext_functionapp/azure_devops_build_interactive.py +++ b/src/functionapp/azext_functionapp/azure_devops_build_interactive.py @@ -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 @@ -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) diff --git a/src/functionapp/azext_functionapp/tests/latest/test_devops_build_commands_thru_mock.py b/src/functionapp/azext_functionapp/tests/latest/test_devops_build_commands_thru_mock.py index 38155f3144a..47a72d65a44 100644 --- a/src/functionapp/azext_functionapp/tests/latest/test_devops_build_commands_thru_mock.py +++ b/src/functionapp/azext_functionapp/tests/latest/test_devops_build_commands_thru_mock.py @@ -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()) diff --git a/src/functionapp/setup.py b/src/functionapp/setup.py index 4510a81e177..0ef17b1ce8b 100644 --- a/src/functionapp/setup.py +++ b/src/functionapp/setup.py @@ -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