From fa5ffbae37b694d6c5f28e7d9b7afa2a35e4e8e4 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Tue, 17 Feb 2015 10:37:40 -0700 Subject: [PATCH] Don't fail if task runs twice This was happening because _yum_unset_check_obsoletes() was failing Signed-off-by: Zack Cerza --- teuthology/task/install.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/teuthology/task/install.py b/teuthology/task/install.py index d1f85d90ba..a8f29f8fb9 100644 --- a/teuthology/task/install.py +++ b/teuthology/task/install.py @@ -419,7 +419,8 @@ def _yum_unset_check_obsoletes(remote): """ conf_path = '/etc/yum/pluginconf.d/priorities.conf' conf_path_orig = conf_path + '.orig' - remote.run(args=['sudo', 'mv', '-f', conf_path_orig, conf_path]) + remote.run(args=['sudo', 'mv', '-f', conf_path_orig, conf_path], + check_status=False) def _update_rpm_package_list_and_install(ctx, remote, rpm, config): -- 2.39.5