Skip to content

Commit

Permalink
Change SSHKey ResourceCategory from AzureNetworkCategory to AzureComp…
Browse files Browse the repository at this point in the history
…uteCategory in Azure driver
  • Loading branch information
powerkimhub committed Sep 30, 2024
1 parent bf20df2 commit df6ae50
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package resources
import (
"errors"
"fmt"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v6"
"math/rand"
"net"
"sort"
Expand All @@ -12,6 +11,8 @@ import (
"sync"
"time"

"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v6"

cblog "github.com/cloud-barista/cb-log"
irs "github.com/cloud-barista/cb-spider/cloud-control-manager/cloud-driver/interfaces/resources"
"github.com/sirupsen/logrus"
Expand Down Expand Up @@ -132,7 +133,7 @@ func GetSecGroupIdByName(credentialInfo idrv.CredentialInfo, regionInfo idrv.Reg
}

func GetSshKeyIdByName(credentialInfo idrv.CredentialInfo, regionInfo idrv.RegionInfo, keyName string) string {
return fmt.Sprintf("/subscriptions/%s/resourceGroups/%s/providers/%s/%s/%s", credentialInfo.SubscriptionId, regionInfo.Region, AzureNetworkCategory, AzureSSHPublicKeys, keyName)
return fmt.Sprintf("/subscriptions/%s/resourceGroups/%s/providers/%s/%s/%s", credentialInfo.SubscriptionId, regionInfo.Region, AzureComputeCategory, AzureSSHPublicKeys, keyName)
}

func GetClusterIdByName(credentialInfo idrv.CredentialInfo, regionInfo idrv.RegionInfo, clusterName string) string {
Expand Down

0 comments on commit df6ae50

Please sign in to comment.