No logging should be done in __virtual__

This commit is contained in:
Pedro Algarvio 2015-01-15 01:22:35 +00:00
parent 0ceda58bd6
commit 435afb6e26

View File

@ -67,14 +67,10 @@ def __virtual__():
# which was added in boto 2.8.0
# https://github.com/boto/boto/commit/33ac26b416fbb48a60602542b4ce15dcc7029f12
if not HAS_BOTO:
log.debug('The boto_vpc module requires boto {0} to be installed.'.format(required_boto_version))
return False
elif _LooseVersion(boto.__version__) < _LooseVersion(required_boto_version):
log.debug('The boto_vpc module requires boto {0} to be installed. Current boto version: {1}'.format(
required_boto_version, boto.__version__))
return False
else:
log.debug('Installed boto version: {0}'.format(boto.__version__))
return True