Skip to content

Commit

Permalink
fix: GetInstanceId check error
Browse files Browse the repository at this point in the history
  • Loading branch information
Insidexa committed Nov 11, 2023
1 parent fd032ec commit 18b17ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iam/iam.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func GetInstanceIAMRole() (string, error) {
func (iam *Client) GetInstanceId() (string, error) {
instanceId, err := getInstanceMetadata("instance-id")

if err == nil {
if err != nil {
return "", err
}
return string(instanceId), nil
Expand Down

0 comments on commit 18b17ba

Please sign in to comment.