Created
September 25, 2013 13:34
-
-
Save amferraz/6699661 to your computer and use it in GitHub Desktop.
Using python-vagrant to discover running VMs addresses
https://pypi.python.org/pypi/python-vagrant
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from vagrant import Vagrant | |
vm_name = 'vm_name_on_vagrantfile' | |
v = Vagrant() | |
hostname = v.hostname(vm_name=vm_name) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment