mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Move non-glance imports out of the try:except: block
This commit is contained in:
parent
785f1575e8
commit
adcffc0af8
@ -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__():
|
||||
'''
|
||||
|
Loading…
Reference in New Issue
Block a user