Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
<oo-diagnostics> validate yum conf if possible - bug 1031686
  • Loading branch information
sosiouxme committed Nov 19, 2013
1 parent d7c930b commit 6379455
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions common/bin/oo-diagnostics
Expand Up @@ -1221,6 +1221,29 @@ class OODiag
end
end

def test_yum_configuration
if system "command -v oo-admin-yum-validator >& /dev/null"
output = `oo-admin-yum-validator --report-all 2>&1`
$?.success? or do_warn <<-YUM
oo-admin-yum-validator reported some possible problems
with your package source configuration:
--------------------------------------------------------------
#{output}
--------------------------------------------------------------
Incorrect package source configuration could lead to
failure to install the correct RPMs.
YUM
elsif @project_is[:enterprise]
do_warn <<-YUM
oo-admin-yum-validator is not installed. Please install with:
yum install openshift-enterprise-release-2.0
This tool helps validate and fix your package source
configuration. Incorrect configuration could lead to
failure to install the correct RPMs.
YUM
end
end

end #class OODiag


Expand Down

0 comments on commit 6379455

Please sign in to comment.