Fix for correct work of disabling mos-updates|security repos

Fix for correct work of disabling mos-updates|security repos if
PATCHING_DISABLE_UPDATES=True for fuel-qa/master branch

Change-Id: Ie39caa26d93c49fcf78a134253dddb125acf621c
This commit is contained in:
Artem Grechanichenko 2016-08-30 12:37:45 +03:00
parent 7dbd9153ab
commit 5131f50b5b
1 changed files with 2 additions and 2 deletions

View File

@ -217,8 +217,8 @@ class TestBasic(object):
))
if settings.PATCHING_DISABLE_UPDATES:
cmd = "find /etc/yum.repos.d/ -type f -regextype posix-egrep" \
" -regex '.*/mos[0-9,\.]+\-(updates|security).repo' | " \
"xargs -n1 -i sed '$aenabled=0' -i {}"
" -regex '.*/mos+\-(updates|security).repo' | " \
"xargs -n1 -i sed -i 's/enabled=1/enabled=0/' -i {}"
self.ssh_manager.execute_on_remote(
ip=self.ssh_manager.admin_ip,
cmd=cmd