From: Loic Dachary Date: Mon, 29 Jun 2015 14:06:44 +0000 (+0200) Subject: task/install: rm {proj}.list is idempotent X-Git-Tag: 1.1.0~890^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F545%2Fhead;p=teuthology.git 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 --- diff --git a/teuthology/task/install.py b/teuthology/task/install.py index 0ada87803..7e70b4297 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',