Skip to content

Instantly share code, notes, and snippets.

@amferraz
Created September 25, 2013 13:34
Show Gist options
  • Save amferraz/6699661 to your computer and use it in GitHub Desktop.
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
# -*- 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