Move non-glance imports out of the try:except: block

This commit is contained in:
Colton Myers 2015-07-06 14:12:44 -06:00
parent 785f1575e8
commit adcffc0af8

View File

@ -50,10 +50,6 @@ try:
from glanceclient import client
from glanceclient import exc
HAS_GLANCE = True
import logging
logging.basicConfig(level=logging.DEBUG)
log = logging.getLogger(__name__)
import pprint
except ImportError:
pass
@ -66,6 +62,11 @@ try:
except ImportError:
pass
import logging
logging.basicConfig(level=logging.DEBUG)
log = logging.getLogger(__name__)
import pprint
def __virtual__():
'''