From 0cae9d6b7ac731c71b194478bbe60ef9a6ef4527 Mon Sep 17 00:00:00 2001 From: Stefan Sidler Date: Mon, 30 Sep 2024 15:24:48 +0200 Subject: [PATCH] fix: use correct variable name for boolean flag #3671 --- scripts/ConnectorPackageValidator.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ConnectorPackageValidator.ps1 b/scripts/ConnectorPackageValidator.ps1 index 390310bc8f..d1e8516418 100644 --- a/scripts/ConnectorPackageValidator.ps1 +++ b/scripts/ConnectorPackageValidator.ps1 @@ -385,7 +385,7 @@ try { } } - if ($pluginEnabled) { + if ($isPluginEnabled) { # aiplugin operation $pluginNodeName = "aicopilot_aiplugin" # Use XPath to find the node @@ -482,7 +482,7 @@ try { Write-Host "Validate the flow solution has both 'Connector' and 'Workflows' components. If not so, please recreate the solution and export again." $resultOfValidation = $false } - elseif ($pluginEnabled -and (-not $isPluginSolutionPresent)) { + elseif ($isPluginEnabled -and (-not $isPluginSolutionPresent)) { Write-Host "Plugin solution in '$originalParentFolderPath' is invalid. Plugin solution should contain 'Connector', 'aiplugins' and 'aipluginoperations' folders." Write-Host "Validate the plugin solution has 'Connector', 'aiplugins' and 'aipluginoperations' components. If not so, please recreate the solution and export again." $resultOfValidation = $false