mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #5 from s0undt3ch/hotfix/rally-boto
Bring the global variables more into their context
This commit is contained in:
commit
92054dbe8b
@ -6,17 +6,16 @@ import string
|
||||
from collections import OrderedDict
|
||||
from copy import deepcopy
|
||||
|
||||
HAS_BOTO = True
|
||||
HAS_MOTO = True
|
||||
|
||||
# import Python Third Party Libs
|
||||
try:
|
||||
import boto
|
||||
HAS_BOTO = True
|
||||
except ImportError:
|
||||
HAS_BOTO = False
|
||||
|
||||
try:
|
||||
from moto import mock_ec2
|
||||
HAS_MOTO = True
|
||||
except ImportError:
|
||||
HAS_MOTO = False
|
||||
|
||||
|
@ -1,16 +1,15 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
HAS_BOTO = True
|
||||
HAS_MOTO = True
|
||||
|
||||
# import Python Third Party Libs
|
||||
try:
|
||||
import boto
|
||||
HAS_BOTO = True
|
||||
except ImportError:
|
||||
HAS_BOTO = False
|
||||
|
||||
try:
|
||||
from moto import mock_ec2
|
||||
HAS_MOTO = True
|
||||
except ImportError:
|
||||
HAS_MOTO = False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user