From 4781679843b883f5296ab05102fd6ef4f4475098 Mon Sep 17 00:00:00 2001 From: Michael Spencer Date: Tue, 29 Oct 2024 09:50:00 -0700 Subject: [PATCH] Updated const for corral-packge conflict on naming --- clients/corral/corral.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/clients/corral/corral.go b/clients/corral/corral.go index 971b9bd4..e55f95ae 100644 --- a/clients/corral/corral.go +++ b/clients/corral/corral.go @@ -18,12 +18,12 @@ import ( ) const ( - debugFlag = "--trace" - skipCleanupFlag = "--skip-cleanup" - corralPrivateSSHKey = "corral_private_key" - corralPublicSSHKey = "corral_public_key" - corralRegistryIP = "bastion_ip" - corralRegistryPrivateIP = "bastion_private_ip" + debugFlag = "--trace" + skipCleanupFlag = "--skip-cleanup" + corralPrivateSSHKey = "corral_private_key" + corralPublicSSHKey = "corral_public_key" + corralBastionIP = "bastion_ip" + corralBastionPrivateIP = "bastion_private_ip" ) // GetCorralEnvVar gets corral environment variables @@ -350,20 +350,20 @@ func SetCorralSSHKeys(corralName string) error { // SetCorralBastion is a helper function that will set the corral bastion private and pulic addresses previously generated by `corralName` func SetCorralBastion(corralName string) error { - bastion_ip, err := GetCorralEnvVar(corralName, corralRegistryIP) + bastion_ip, err := GetCorralEnvVar(corralName, corralBastionIP) if err != nil { return err } - err = UpdateCorralConfig(corralRegistryIP, bastion_ip) + err = UpdateCorralConfig(corralBastionIP, bastion_ip) if err != nil { return err } - bastion_internal_ip, err := GetCorralEnvVar(corralName, corralRegistryPrivateIP) + bastion_internal_ip, err := GetCorralEnvVar(corralName, corralBastionPrivateIP) if err != nil { return err } - return UpdateCorralConfig(corralRegistryPrivateIP, bastion_internal_ip) + return UpdateCorralConfig(corralBastionPrivateIP, bastion_internal_ip) }