Skip to content
This repository has been archived by the owner on Jul 23, 2018. It is now read-only.

Commit

Permalink
raise Exit error if cannot connect to vmware vcenter
Browse files Browse the repository at this point in the history
  • Loading branch information
rverchere committed May 31, 2017
1 parent ce68623 commit 86c270e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vmware_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(self):
self.config = YamlConfig('config.yml', defaults)
self.si = self._vmware_connect()
if not self.si:
print("Error, cannot connect to vmware")
raise SystemExit("Error, cannot connect to vmware")


@REQUEST_TIME.time()
Expand Down

0 comments on commit 86c270e

Please sign in to comment.