]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Use sudo when removing timedhosts files
authorZack Cerza <zack@redhat.com>
Tue, 30 Jun 2015 15:17:45 +0000 (09:17 -0600)
committerZack Cerza <zack@redhat.com>
Tue, 30 Jun 2015 15:17:45 +0000 (09:17 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/nuke.py

index c7839e491421336e5031c8b79a05b902df26779a..2b38668923b57134adcb5cd30dc25eee5f265d83 100644 (file)
@@ -270,7 +270,7 @@ def remove_yum_timedhosts(ctx):
         if remote.os.package_type != 'rpm':
             continue
         remote.run(
-            args="find /var/cache/yum -name 'timedhosts' -exec rm {} \;",
+            args="sudo find /var/cache/yum -name 'timedhosts' -exec rm {} \;",
             check_status=False,
         )