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:
Justin Santa Barbara 2016-06-21 15:34:20 -04:00
parent ee87a39f04
commit 404c501c0d

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 {