diff --git a/data/templates/agent/SetPassword.template b/data/templates/agent/SetPassword.template index 02f7482..101db0e 100644 --- a/data/templates/agent/SetPassword.template +++ b/data/templates/agent/SetPassword.template @@ -1,7 +1,7 @@ { "Scripts": [ "ImportCoreFunctions.ps1", - "Set-LocalUserPasswordPassword.ps1" + "Set-LocalUserPassword.ps1" ], "Commands": [ { diff --git a/data/templates/agent/SqlServerCluster/InitializeAOAGPrimaryReplica.template b/data/templates/agent/SqlServerCluster/InitializeAOAGPrimaryReplica.template index 54ca203..877a9f7 100644 --- a/data/templates/agent/SqlServerCluster/InitializeAOAGPrimaryReplica.template +++ b/data/templates/agent/SqlServerCluster/InitializeAOAGPrimaryReplica.template @@ -3,7 +3,7 @@ "ImportCoreFunctions.ps1", "OptionParser.ps1", "SQLServerOptionParsers.ps1", - "SQLServerInsatller.ps1", + "SQLServerInstaller.ps1", "Export-Function.ps1", "Start-PowerShellProcess.ps1", "SQLServerForAOAG.ps1" diff --git a/data/templates/agent/SqlServerCluster/InitializeAOAGSecondaryReplica.template b/data/templates/agent/SqlServerCluster/InitializeAOAGSecondaryReplica.template index 1af2865..604dae6 100644 --- a/data/templates/agent/SqlServerCluster/InitializeAOAGSecondaryReplica.template +++ b/data/templates/agent/SqlServerCluster/InitializeAOAGSecondaryReplica.template @@ -3,7 +3,7 @@ "ImportCoreFunctions.ps1", "OptionParser.ps1", "SQLServerOptionParsers.ps1", - "SQLServerInstall.ps1", + "SQLServerInstaller.ps1", "Export-Function.ps1", "Start-PowerShellProcess.ps1", "SQLServerForAOAG.ps1" diff --git a/data/templates/agent/scripts/SetLocalUserPassword.ps1 b/data/templates/agent/scripts/Set-LocalUserPassword.ps1 similarity index 100% rename from data/templates/agent/scripts/SetLocalUserPassword.ps1 rename to data/templates/agent/scripts/Set-LocalUserPassword.ps1 diff --git a/muranoconductor/commands/windows_agent.py b/muranoconductor/commands/windows_agent.py index 870e845..6f275e0 100644 --- a/muranoconductor/commands/windows_agent.py +++ b/muranoconductor/commands/windows_agent.py @@ -47,7 +47,7 @@ class WindowsAgentExecutor(CommandBase): template_data, queue, msg_id)) def encode_scripts(self, json_data, template_path): - scripts_folder = ''.join([os.path.dirname(template_path), "/scripts/"]) + scripts_folder = 'data/templates/agent/scripts' script_files = json_data.get("Scripts", []) scripts = [] for script in script_files: