From 57933b6f92df63ea1ecbc859df524f79c6340bac Mon Sep 17 00:00:00 2001 From: Sandon Van Ness Date: Thu, 25 Jul 2013 14:24:43 -0700 Subject: [PATCH] Fix priority so it only is added once. Needed for baremetal so the sed doesn't keep adding the priority line in the repos file. Signed-off-by: Sandon Van Ness --- 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 ea7367ceea..a4252d56e2 100644 --- a/teuthology/task/install.py +++ b/teuthology/task/install.py @@ -194,7 +194,7 @@ def _update_rpm_package_list_and_install(ctx, remote, rpm, config): #Fix Repo Priority remote.run( args=[ - 'sudo', 'sed', '-i', run.Raw('\'s/enabled=1/enabled=1\\npriority=1/g\''), '/etc/yum.repos.d/ceph.repo', + 'sudo', 'sed', '-i', run.Raw('\':a;N;$!ba;s/enabled=1\\ngpg/enabled=1\\npriority=1\\ngpg/g\''), '/etc/yum.repos.d/ceph.repo', ]) remote.run( -- 2.39.5