From 404c501c0da14f0da03961850c055dfc5d29b89a Mon Sep 17 00:00:00 2001 From: Justin Santa Barbara Date: Tue, 21 Jun 2016 15:34:20 -0400 Subject: [PATCH] AWS: Add missing error check for #27774 There was an error check missing, which seems likely to have caused 27774 Issue #27774 --- pkg/cloudprovider/providers/aws/aws.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/cloudprovider/providers/aws/aws.go b/pkg/cloudprovider/providers/aws/aws.go index 4dc1a35293b..3d32f5cdd99 100644 --- a/pkg/cloudprovider/providers/aws/aws.go +++ b/pkg/cloudprovider/providers/aws/aws.go @@ -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 {