Skip to content

Get compute engine credential type id dynamically#12

Merged
josh-silvas merged 4 commits intojosh-silvas:mainfrom
quentinleclerc:get-credential-type-id-dynamically
Sep 11, 2024
Merged

Get compute engine credential type id dynamically#12
josh-silvas merged 4 commits intojosh-silvas:mainfrom
quentinleclerc:get-credential-type-id-dynamically

Conversation

@quentinleclerc
Copy link
Copy Markdown
Collaborator

Hello,
Weirdly in my AWX setup the Google Compute Engine credential type does not have the same id that is hardcoded in the provider (two different installations).
I don't know if it's something that can happen for other or not. This PR fetches the ID by name instead. Which surely can move... but at least I'll work for every setup.

Copy link
Copy Markdown
Owner

@josh-silvas josh-silvas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hrm, this is interesting. Either way, I think fetching by name makes sense. 👍

@josh-silvas josh-silvas merged commit c1970e4 into josh-silvas:main Sep 11, 2024
quentinleclerc pushed a commit that referenced this pull request May 2, 2025
Inventory can be `null` in AWX API responses. Before this change, these
were always converted to `0` which resulted in invalid diffs during plan
generation.

Before:
![Screenshot 2025-03-18 at 11 52
19](https://github.com/user-attachments/assets/174b0ba1-92de-44fc-a6b0-eee74fdf368c)

After:
![Screenshot 2025-03-18 at 11 50
38](https://github.com/user-attachments/assets/b68ee7aa-b818-4727-84d8-f70ac6c31056)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants