From 986770b63d7bd46dc698861fa3edfea2e6d38c74 Mon Sep 17 00:00:00 2001 From: Matt Garrett Date: Sat, 17 Sep 2016 15:11:18 -0400 Subject: [PATCH] Import vim from pyVmomi Import vim so that sample code will run properly --- sample/getallvms.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sample/getallvms.py b/sample/getallvms.py index df4807c..d1698ca 100755 --- a/sample/getallvms.py +++ b/sample/getallvms.py @@ -21,6 +21,7 @@ Python program for listing the vms on an ESX / vCenter host from __future__ import print_function from pyVim.connect import SmartConnect, Disconnect +from pyVmomi import vim import argparse import atexit