golint fixes for aws cloudprovider

This commit is contained in:
Rudi Chiarito
2016-04-17 16:31:02 -04:00
parent f949b24ee0
commit 8db551f674
7 changed files with 325 additions and 310 deletions

View File

@@ -136,7 +136,7 @@ func (l *persistentVolumeLabel) getEBSVolumes() (aws.Volumes, error) {
if err != nil || cloudProvider == nil {
return nil, err
}
awsCloudProvider, ok := cloudProvider.(*aws.AWSCloud)
awsCloudProvider, ok := cloudProvider.(*aws.Cloud)
if !ok {
// GetCloudProvider has gone very wrong
return nil, fmt.Errorf("error retrieving AWS cloud provider")