Skip to content

Commit

Permalink
update NewDevice func
Browse files Browse the repository at this point in the history
  • Loading branch information
Varun Dhananjaya committed Apr 2, 2021
1 parent a5882e3 commit b53aa12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cloud/devicemanager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (d *deviceManager) NewDevice(instance *ec2.Instance, volumeID string) (*Dev

// Check if this volume is already assigned a device on this machine
if path := d.getPath(inUse, volumeID); path != "" {
return d.newBlockDevice(instance, volumeID, path, true), nil
return nil, fmt.Errorf("volume already assigned")
}

nodeID, err := getInstanceID(instance)
Expand Down

0 comments on commit b53aa12

Please sign in to comment.