Skip to content

Commit

Permalink
provisioner-azure: Remove unused CloudProvider attrib
Browse files Browse the repository at this point in the history
Fixes #974

Signed-off-by: Suraj Deshmukh <suraj.deshmukh@microsoft.com>
  • Loading branch information
surajssd authored and kartikjoshi21 committed Jul 19, 2023
1 parent cc2acea commit 1d0a435
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions test/provisioner/provision_azure_initializer.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import (

type AzureProperties struct {
ResourceGroup *armresources.ResourceGroup
CloudProvider string
SubscriptionID string
ClientID string
ClientSecret string
Expand Down Expand Up @@ -63,7 +62,6 @@ func initAzureProperties(properties map[string]string) error {
ClusterName: properties["CLUSTER_NAME"],
Location: properties["LOCATION"],
SshPrivateKey: properties["SSH_KEY_ID"],
CloudProvider: properties["CLOUD_PROVIDER"],
ImageID: properties["AZURE_IMAGE_ID"],
SubnetID: properties["AZURE_SUBNET_ID"],
SshUserName: properties["SSH_USERNAME"],
Expand Down Expand Up @@ -100,9 +98,6 @@ func initAzureProperties(properties map[string]string) error {
if AzureProps.Location == "" {
return errors.New("LOCATION was not set.")
}
if AzureProps.CloudProvider == "" {
return errors.New("CLOUD_PROVIDER was not set.")
}
if AzureProps.SshPrivateKey == "" {
return errors.New("SSH_KEY_ID was not set.")
}
Expand Down

0 comments on commit 1d0a435

Please sign in to comment.