Merge pull request #27793 from justinsb/fix_27774

Automatic merge from submit-queue

AWS: Add missing error check for #27774

There was an error check missing, which seems likely to have caused 27774

Issue #27774
This commit is contained in:
k8s-merge-robot 2016-06-21 16:21:20 -07:00 committed by GitHub
commit ff583762f9

View File

@ -1483,6 +1483,9 @@ func (c *AWSCloud) GetDiskPath(volumeName string) (string, error) {
// Implement Volumes.DiskIsAttached
func (c *AWSCloud) DiskIsAttached(diskName, instanceID string) (bool, error) {
awsInstance, err := c.getAwsInstance(instanceID)
if err != nil {
return false, err
}
info, err := awsInstance.describeInstance()
if err != nil {