From a842b6b9252043bd3354292cbab6dd9bbb9c53b2 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Thu, 21 Nov 2024 20:23:01 +0800 Subject: [PATCH] fix: illegal arguments --- internal/deployer/factory.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/internal/deployer/factory.go b/internal/deployer/factory.go index d150576f..fee6f628 100644 --- a/internal/deployer/factory.go +++ b/internal/deployer/factory.go @@ -195,9 +195,9 @@ func createDeployer(target string, accessConfig string, deployConfig map[string] ShellEnv: providerLocal.ShellEnvType(maps.GetValueAsString(deployConfig, "shellEnv")), PreCommand: maps.GetValueAsString(deployConfig, "preCommand"), PostCommand: maps.GetValueAsString(deployConfig, "postCommand"), - OutputFormat: providerLocal.OutputFormatType(maps.GetValueOrDefaultAsString(deployConfig, "outputFormat", "PEM")), - OutputCertPath: maps.GetValueAsString(deployConfig, "outputCertPath"), - OutputKeyPath: maps.GetValueAsString(deployConfig, "outputKeyPath"), + OutputFormat: providerLocal.OutputFormatType(maps.GetValueOrDefaultAsString(deployConfig, "format", "PEM")), + OutputCertPath: maps.GetValueAsString(deployConfig, "certPath"), + OutputKeyPath: maps.GetValueAsString(deployConfig, "keyPath"), PfxPassword: maps.GetValueAsString(deployConfig, "pfxPassword"), JksAlias: maps.GetValueAsString(deployConfig, "jksAlias"), JksKeypass: maps.GetValueAsString(deployConfig, "jksKeypass"), @@ -255,9 +255,9 @@ func createDeployer(target string, accessConfig string, deployConfig map[string] SshKeyPassphrase: access.KeyPassphrase, PreCommand: maps.GetValueAsString(deployConfig, "preCommand"), PostCommand: maps.GetValueAsString(deployConfig, "postCommand"), - OutputFormat: providerSSH.OutputFormatType(maps.GetValueOrDefaultAsString(deployConfig, "outputFormat", "PEM")), - OutputCertPath: maps.GetValueAsString(deployConfig, "outputCertPath"), - OutputKeyPath: maps.GetValueAsString(deployConfig, "outputKeyPath"), + OutputFormat: providerSSH.OutputFormatType(maps.GetValueOrDefaultAsString(deployConfig, "format", "PEM")), + OutputCertPath: maps.GetValueAsString(deployConfig, "certPath"), + OutputKeyPath: maps.GetValueAsString(deployConfig, "keyPath"), PfxPassword: maps.GetValueAsString(deployConfig, "pfxPassword"), JksAlias: maps.GetValueAsString(deployConfig, "jksAlias"), JksKeypass: maps.GetValueAsString(deployConfig, "jksKeypass"),