From: Alfredo Deza Date: Fri, 6 Sep 2013 00:19:42 +0000 (-0400) Subject: fix wrong logic for mangling repos X-Git-Tag: v1.2.4~19^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F64%2Fhead;p=ceph-deploy.git fix wrong logic for mangling repos Signed-off-by: Alfredo Deza --- diff --git a/ceph_deploy/hosts/centos/install.py b/ceph_deploy/hosts/centos/install.py index e06d0aa..a9a6018 100644 --- a/ceph_deploy/hosts/centos/install.py +++ b/ceph_deploy/hosts/centos/install.py @@ -8,14 +8,14 @@ def install(distro, logger, version_kind, version, adjust_repos): machine = distro.sudo_conn.modules.platform.machine() # Get EPEL installed before we continue: - if not adjust_repos: + if adjust_repos: install_epel(distro, logger) if version_kind in ['stable', 'testing']: key = 'release' else: key = 'autobuild' - if not adjust_repos: + if adjust_repos: check_call( distro.sudo_conn, logger, diff --git a/ceph_deploy/hosts/debian/install.py b/ceph_deploy/hosts/debian/install.py index bd7a8b6..608d405 100644 --- a/ceph_deploy/hosts/debian/install.py +++ b/ceph_deploy/hosts/debian/install.py @@ -27,7 +27,7 @@ def install(distro, logger, version_kind, version, adjust_repos): ] ) - if not adjust_repos: + if adjust_repos: check_call( distro.sudo_conn, logger, diff --git a/ceph_deploy/hosts/fedora/install.py b/ceph_deploy/hosts/fedora/install.py index 2032db6..8570efb 100644 --- a/ceph_deploy/hosts/fedora/install.py +++ b/ceph_deploy/hosts/fedora/install.py @@ -11,7 +11,7 @@ def install(distro, logger, version_kind, version, adjust_repos): else: key = 'autobuild' - if not adjust_repos: + if adjust_repos: check_call( distro.sudo_conn, logger, diff --git a/ceph_deploy/hosts/suse/install.py b/ceph_deploy/hosts/suse/install.py index 203aacf..29ba9f8 100644 --- a/ceph_deploy/hosts/suse/install.py +++ b/ceph_deploy/hosts/suse/install.py @@ -16,7 +16,7 @@ def install(distro, logger, version_kind, version, adjust_repos): else: distro = 'sles-11sp2' - if not adjust_repos: + if adjust_repos: check_call( distro.sudo_conn, logger,