]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
task/install: rm {proj}.list is idempotent 545/head
authorLoic Dachary <ldachary@redhat.com>
Mon, 29 Jun 2015 14:06:44 +0000 (16:06 +0200)
committerLoic Dachary <ldachary@redhat.com>
Mon, 29 Jun 2015 14:57:50 +0000 (16:57 +0200)
It does not matter if the {proj}.list file can't be removed because it
does not exist.

Signed-off-by: Loic Dachary <loic@dachary.org>
teuthology/task/install.py

index 0ada8780315aff0dcc08f28208cbd034307dc5a4..7e70b429729d47b301ae70224e02fbda6425d038 100644 (file)
@@ -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',