Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Commit

Permalink
Update status code check
Browse files Browse the repository at this point in the history
  • Loading branch information
gastonyelmini committed Feb 23, 2024
1 parent 765c77a commit d460f61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/steps/compute/steps/fetch-compute-instances.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export async function fetchComputeInstances(
}
} catch (e) {
// Do not make this inventory call if api is disabled and customer is not using this feature.
if (e.response.status === 403) {
if (e.code === 403) {
inventoryApiDisabled = true;
}
}
Expand Down

0 comments on commit d460f61

Please sign in to comment.