Skip to content

Commit

Permalink
golink fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Harsh Desai <[email protected]>
  • Loading branch information
Harsh Desai committed Aug 20, 2019
1 parent 2399546 commit b34eb48
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions azure/storagemanager/azure.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package storagemanager

import (
"github.com/libopenstorage/cloudops"
"github.com/libopenstorage/cloudops/pkg/storage_distribution"
"github.com/libopenstorage/cloudops/pkg/storagedistribution"
"github.com/libopenstorage/cloudops/unsupported"
)

Expand All @@ -23,7 +23,7 @@ func NewAzureStorageManager(
func (a *azureStorageManager) GetStorageDistribution(
request *cloudops.StorageDistributionRequest,
) (*cloudops.StorageDistributionResponse, error) {
return storage_distribution.GetStorageDistribution(request, a.decisionMatrix)
return storagedistribution.GetStorageDistribution(request, a.decisionMatrix)
}

func init() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package storage_distribution
package storagedistribution

import (
"fmt"
Expand Down Expand Up @@ -271,10 +271,10 @@ func instanceStorageForRow(
instStorage.DriveCount++
}
return instStorage, nil
} else {
logrus.Debugf("skipping row as requiredDriveSize: %d not in [%d,%d]",
requiredDriveSize, row.MinSize, row.MaxSize)
}

logrus.Debugf("skipping row as requiredDriveSize: %d not in [%d,%d]",
requiredDriveSize, row.MinSize, row.MaxSize)
} else if requiredCapacity >= row.MinSize {
// start from candidateRow.MinSize to distribute the newCapacity across the drives
for driveCount := row.InstanceMinDrives; driveCount <= row.InstanceMaxDrives; driveCount++ {
Expand Down
6 changes: 3 additions & 3 deletions vsphere/storagemanager/vsphere.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package storagemanager

import (
"github.com/libopenstorage/cloudops"
"github.com/libopenstorage/cloudops/pkg/storage_distribution"
"github.com/libopenstorage/cloudops/pkg/storagedistribution"
"github.com/libopenstorage/cloudops/unsupported"
)

Expand All @@ -23,12 +23,12 @@ func newVsphereStorageManager(
func (a *vsphereStorageManager) GetStorageDistribution(
request *cloudops.StorageDistributionRequest,
) (*cloudops.StorageDistributionResponse, error) {
return storage_distribution.GetStorageDistribution(request, a.decisionMatrix)
return storagedistribution.GetStorageDistribution(request, a.decisionMatrix)
}

func (a *vsphereStorageManager) RecommendInstanceStorageUpdate(
request *cloudops.StorageUpdateRequest) (*cloudops.StorageUpdateResponse, error) {
return storage_distribution.GetStorageUpdateConfig(request, a.decisionMatrix)
return storagedistribution.GetStorageUpdateConfig(request, a.decisionMatrix)
}
func init() {
cloudops.RegisterStorageManager(cloudops.Vsphere, newVsphereStorageManager)
Expand Down

0 comments on commit b34eb48

Please sign in to comment.