Fix [H302] errors in heat/cloudinit

Kicked from gate (heat can't pass pep8 atm)

Change-Id: If9100574f091d23c9ae9e0bca94ab16fd4b535ec
This commit is contained in:
Peter Razumovsky 2014-11-13 14:56:37 +03:00 committed by Sean Dague
parent 4f095c5688
commit c1aa3d7a4d

View File

@ -13,7 +13,7 @@
# under the License.
import datetime
from distutils.version import LooseVersion
from distutils import version
import errno
import logging
import os
@ -27,8 +27,9 @@ LOG = logging.getLogger('heat-provision')
def chk_ci_version():
v = LooseVersion(pkg_resources.get_distribution('cloud-init').version)
return v >= LooseVersion('0.6.0')
v = version.LooseVersion(
pkg_resources.get_distribution('cloud-init').version)
return v >= version.LooseVersion('0.6.0')
def init_logging():