Feedback on Vagrant plugin

All,

I got annoyed with having to hardcode the IP that my Vagrant VM was using, so I wrote a small plugin for external inventory lookup to retrieve the IP of the VM from Vagrant.

My python is pretty aweful (as I’m sure you’re about to see), but I’d love to have any feedback on the plugin itself, in terms of what can be done better, and any feedback on the python itself as well.

If people like it, I’ll make a push request up the main repository.

Plugin:
https://github.com/markmandel/vagrant_ansible_example/blob/master/provision/plugin/inventory/vagrant.py

Vagrantfile:
https://github.com/markmandel/vagrant_ansible_example/blob/master/Vagrantfile

Thanks!

Mark