From c76974eb274cee69f3e03aa354bc13775fbe6df9 Mon Sep 17 00:00:00 2001 From: Kyr Shatskyy Date: Mon, 7 Oct 2019 12:09:43 +0200 Subject: [PATCH] task/install: fix tab inconstent indents Signed-off-by: Kyr Shatskyy --- teuthology/task/install/__init__.py | 2 +- teuthology/test/task/test_install.py | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/teuthology/task/install/__init__.py b/teuthology/task/install/__init__.py index 711660ff6c..cc83252d71 100644 --- a/teuthology/task/install/__init__.py +++ b/teuthology/task/install/__init__.py @@ -335,7 +335,7 @@ def upgrade_common(ctx, config, deploy_style): i=installed_version, u=upgrade_version )) - if _upgrade_is_downgrade(installed_version, upgrade_version): + if _upgrade_is_downgrade(installed_version, upgrade_version): raise RuntimeError( "An attempt to upgrade from a higher version to a lower one " "will always fail. Hint: check tags in the target git branch." diff --git a/teuthology/test/task/test_install.py b/teuthology/test/task/test_install.py index 5cf7e2d55c..13892957ad 100644 --- a/teuthology/test/task/test_install.py +++ b/teuthology/test/task/test_install.py @@ -126,11 +126,11 @@ class TestInstall(object): def test_upgrade_is_downgrade(self): assert_ok_vals = [ - ('9.0.0', '10.0.0'), - ('10.2.2-63-g8542898-1trusty', '10.2.2-64-gabcdef1-1trusty'), - ('11.0.0-918.g13c13c7', '11.0.0-2165.gabcdef1') - ] - for t in assert_ok_vals: + ('9.0.0', '10.0.0'), + ('10.2.2-63-g8542898-1trusty', '10.2.2-64-gabcdef1-1trusty'), + ('11.0.0-918.g13c13c7', '11.0.0-2165.gabcdef1') + ] + for t in assert_ok_vals: assert install._upgrade_is_downgrade(t[0], t[1]) == False @patch("teuthology.packaging.get_package_version") @@ -181,7 +181,7 @@ class TestInstall(object): }, ], } - m_get_upgrade_version.return_value = "11.0.0" + m_get_upgrade_version.return_value = "11.0.0" m_get_package_version.return_value = "10.2.4" m_get_system_type.return_value = "deb" def upgrade(ctx, node, remote, pkgs, system_type): -- 2.39.5