Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
GCE Dynamic Inventory script using Google API Client library #24505
We needed to use the beta version of the API (to be able to use labels) and figured out that Apache's libcloud (used by the current gce.py) only uses 'v1' (it is hardcoded).
So, a new script that uses Google API Client library was created from scratch. It was inspired by some of the current gce.py features, however not 100% of the features are there yet.
May 11, 2017
@maurofaccenda thanks for the PR! We like the idea of being able to specify different API versions as well, and we've been asked about label support, so your timing is good.
I haven't tried this yet, but I see that you mention that it doesn't have feature-parity with the existing gce.py. Is that something you're willing/able to add? More specifically,
@supertom sure. I am willing to do that. However as I am doing that as part of my work (the customer asked explicitly to send the code upstream), it would be nice to have:
With that, I can create the tasks on our internal issue tracker and they can prioritise the tasks accordingly with their needs.
Keep in mind that I am not Python 'fluent', so some input/help would be great.
From what you mentioned, the idea is to have it 100% (or as much as possible) compatible at some point.