Fix [H302] errors in heat/cloudinit
Kicked from gate (heat can't pass pep8 atm) Change-Id: If9100574f091d23c9ae9e0bca94ab16fd4b535ec
This commit is contained in:
parent
4f095c5688
commit
c1aa3d7a4d
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user