diff --git a/keystoneclient/client.py b/keystoneclient/client.py index b6fd54cb2..aa70e00fe 100644 --- a/keystoneclient/client.py +++ b/keystoneclient/client.py @@ -10,6 +10,7 @@ OpenStack Client interface. Handles the REST calls and responses. import copy import logging +import sys import urlparse import httplib2 @@ -38,7 +39,10 @@ try: import keyring import pickle except ImportError: - _logger.warning('Failed to load keyring modules.') + if (hasattr(sys.stderr, 'isatty') and sys.stderr.isatty()): + print >> sys.stderr, 'Failed to load keyring modules.' + else: + _logger.warning('Failed to load keyring modules.') keyring_available = False