Skip to content

Instantly share code, notes, and snippets.

@bcoca
Created June 14, 2016 14:17
Show Gist options
  • Save bcoca/994f2fc4ee7910e60c3b5513add4113c to your computer and use it in GitHub Desktop.
Save bcoca/994f2fc4ee7910e60c3b5513add4113c to your computer and use it in GitHub Desktop.
diff --git a/contrib/inventory/rax.py b/contrib/inventory/rax.py
index 4ac6b0f..55f3295 100755
--- a/contrib/inventory/rax.py
+++ b/contrib/inventory/rax.py
@@ -144,6 +144,8 @@ Examples:
Use the instance private IP to connect (instead of public IP)
$ RAX_CREDS_FILE=~/.raxpub RAX_ACCESS_NETWORK=private rax.py --list
"""
+from __future__ import (absolute_import, division, print_function)
+__metaclass__ = type
import os
import re
@@ -166,8 +168,7 @@ try:
import pyrax
from pyrax.utils import slugify
except ImportError:
- print('pyrax is required for this module')
- sys.exit(1)
+ sys.exit('pyrax is required for this module')
from time import time
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment