Skip to content

Instantly share code, notes, and snippets.

@philipcristiano
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philipcristiano/c92c8da39b27a3f1f41a to your computer and use it in GitHub Desktop.
Save philipcristiano/c92c8da39b27a3f1f41a to your computer and use it in GitHub Desktop.
try:
with util.ipmi(util.get_lom_ip(self.host))) as ipmi:
ipmi.foo()
except exceptions.IPMIError:
self._unwind("Failed to connect to IPMI", exceptions.IPMIError)
raise
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment