From 8b5da74b4bab7515e2a7e460cc2557ac4b242632 Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Mon, 29 Jun 2015 16:06:44 +0200 Subject: [PATCH] task/install: rm {proj}.list is idempotent It does not matter if the {proj}.list file can't be removed because it does not exist. Signed-off-by: Loic Dachary --- teuthology/task/install.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/task/install.py b/teuthology/task/install.py index 0ada878031..7e70b42972 100644 --- a/teuthology/task/install.py +++ b/teuthology/task/install.py @@ -695,7 +695,7 @@ def _remove_sources_list_deb(remote, proj): """ remote.run( args=[ - 'sudo', 'rm', '/etc/apt/sources.list.d/{proj}.list'.format( + 'sudo', 'rm', '-f', '/etc/apt/sources.list.d/{proj}.list'.format( proj=proj), run.Raw('&&'), 'sudo', 'apt-get', 'update', -- 2.39.5