Skip to content

Commit

Permalink
Merge pull request #5 from snobear/develop
Browse files Browse the repository at this point in the history
better error message for vSphere connection issues
  • Loading branch information
snobear committed Jul 11, 2014
2 parents 1aa11f3 + 3e7ab15 commit d5e83ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions ezmomi/ezmomi.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,10 @@ def connect(self):
pwd = self.config['password'],
port = int(self.config['port']),
)
except:
except Exception as e:
print 'Unable to connect to vsphere server.'
sys.exit()
print e.msg
sys.exit(1)

# add a clean up routine
atexit.register(Disconnect, self.si)
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name='ezmomi',
version='0.2.2',
version='0.2.3',
author='Jason Ashby',
author_email='[email protected]',
packages=['ezmomi'],
Expand All @@ -23,4 +23,4 @@
"pyvmomi==5.5.0",
"wsgiref==0.1.2",
],
)
)

0 comments on commit d5e83ac

Please sign in to comment.