Commit ff583762 authored by k8s-merge-robot's avatar k8s-merge-robot Committed by GitHub

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
parents 62ce6698 404c501c
...@@ -1483,6 +1483,9 @@ func (c *AWSCloud) GetDiskPath(volumeName string) (string, error) { ...@@ -1483,6 +1483,9 @@ func (c *AWSCloud) GetDiskPath(volumeName string) (string, error) {
// Implement Volumes.DiskIsAttached // Implement Volumes.DiskIsAttached
func (c *AWSCloud) DiskIsAttached(diskName, instanceID string) (bool, error) { func (c *AWSCloud) DiskIsAttached(diskName, instanceID string) (bool, error) {
awsInstance, err := c.getAwsInstance(instanceID) awsInstance, err := c.getAwsInstance(instanceID)
if err != nil {
return false, err
}
info, err := awsInstance.describeInstance() info, err := awsInstance.describeInstance()
if err != nil { if err != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment