more readable
This commit is contained in:
parent
97ae7ccb56
commit
c24dbf062e
@ -71,7 +71,7 @@ func CloudProviders() []string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// GetCloudProvider creates an instance of the named cloud provider, or nil if
|
// GetCloudProvider creates an instance of the named cloud provider, or nil if
|
||||||
// the name is not known. The error return is only used if the named provider
|
// the name is unknown. The error return is only used if the named provider
|
||||||
// was known but failed to initialize. The config parameter specifies the
|
// was known but failed to initialize. The config parameter specifies the
|
||||||
// io.Reader handler of the configuration file for the cloud provider, or nil
|
// io.Reader handler of the configuration file for the cloud provider, or nil
|
||||||
// for no configuation.
|
// for no configuation.
|
||||||
|
@ -124,7 +124,7 @@ func (l *persistentVolumeLabel) findAWSEBSLabels(volume *api.PersistentVolume) (
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
return labels, err
|
return labels, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// getEBSVolumes returns the AWS Volumes interface for ebs
|
// getEBSVolumes returns the AWS Volumes interface for ebs
|
||||||
@ -169,7 +169,7 @@ func (l *persistentVolumeLabel) findGCEPDLabels(volume *api.PersistentVolume) (m
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
return labels, err
|
return labels, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// getGCECloudProvider returns the GCE cloud provider, for use for querying volume labels
|
// getGCECloudProvider returns the GCE cloud provider, for use for querying volume labels
|
||||||
|
Loading…
Reference in New Issue
Block a user