From: Alfredo Deza Date: Thu, 22 Aug 2013 13:34:35 +0000 (-0400) Subject: avoid circular import issues for lsb X-Git-Tag: v1.2.2~3^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=abb265d99ed66eb1f7d1583ae9563302b0cf136d;p=ceph-deploy.git avoid circular import issues for lsb Signed-off-by: Alfredo Deza --- diff --git a/ceph_deploy/hosts/__init__.py b/ceph_deploy/hosts/__init__.py index fb14b77..33cba50 100644 --- a/ceph_deploy/hosts/__init__.py +++ b/ceph_deploy/hosts/__init__.py @@ -5,7 +5,8 @@ that remote host and set all the special cases for running commands depending on the type of distribution/version we are dealing with. """ import logging -from ceph_deploy import lsb, exc +import ceph_deploy +from ceph_deploy import exc from ceph_deploy.util import wrappers from ceph_deploy.sudo_pushy import get_transport from ceph_deploy.hosts import debian, centos, fedora, suse @@ -39,7 +40,7 @@ def get(hostname, fallback=None): logger.warning('lsb_release was not found - inferring OS details') (distro, release, codename) = lsb_fallback(sudo_conn) else: - (distro, release, codename) = lsb.get_lsb_release(sudo_conn) + (distro, release, codename) = ceph_deploy.lsb.get_lsb_release(sudo_conn) module = _get_distro(distro) module.name = distro