From b8bde40f7a598a330c22fc8b2997241851e11edb Mon Sep 17 00:00:00 2001 From: xichen Date: Tue, 19 May 2020 10:26:07 +0800 Subject: [PATCH] Fix url base flag and version bump --- src/plugins/azgenerator/TemplateAzureCliClientFactory.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/azgenerator/TemplateAzureCliClientFactory.ts b/src/plugins/azgenerator/TemplateAzureCliClientFactory.ts index 6820ef7e9..720cfaac9 100644 --- a/src/plugins/azgenerator/TemplateAzureCliClientFactory.ts +++ b/src/plugins/azgenerator/TemplateAzureCliClientFactory.ts @@ -16,7 +16,7 @@ export function GenerateAzureCliClientFactory(model: CodeModelAz) : string[] { output.push(" from azure.cli.core.commands.client_factory import get_mgmt_service_client"); output.push(" from ..vendored_sdks." + model.PythonOperationsName + " import " + model.PythonMgmtClient); - if (model.Extension_ClientSubscriptionBound || model.Extension_ClientBaseUrlBound) + if (model.Extension_ClientSubscriptionBound != undefined || model.Extension_ClientBaseUrlBound != undefined) { output.push(" return get_mgmt_service_client(cli_ctx, " + model.PythonMgmtClient + ","); output.push(" subscription_bound=" + (model.Extension_ClientSubscriptionBound ? "True" : "False") + ",");