    print("Keystone exception caught: \n[%s]" % e)
    sys.exit(-1)

# API request wrapper object
class APIRequest():
    def __init__(self, keystone_client_object=None, keystone_session_object=None, tenant=None):
        if keystone_client_object==None or keystone_session_object==None:
            raise Exception("Missing Parameter: keystone_client_object cannot be 'None'")

        if tenant == None:
            raise Exception("Missing Parameter: tenant object cannot be 'None'")

        self.keystone_client = keystone_client_object
        self.auth_token = keystone_session_object.get_token()
        self.tid = tenant