Skip to content

Commit 8369f3a

Browse files
committed
whitelist libatomic only for el-7ppc64
Signed-off-by: muthuja <muthujabavaji.vempalli@progress.com>
1 parent 6abee82 commit 8369f3a

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

lib/omnibus/health_check.rb

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -555,16 +555,11 @@ def check_for_bad_library(bad_libs, good_libs, current_library, name, linked)
555555
FREEBSD_WHITELIST_LIBS
556556
when "aix"
557557
AIX_WHITELIST_LIBS
558+
when "el7ppc64"
559+
EL7PPC64_WHITELIST_LIBS
558560
else
559-
# custom condition for el-7ppc64
560-
if node["platform"] == "el" || node["platform"] == "redhat" || node["platform"] == "centos" &&
561-
node["platform_version"].start_with?("7") &&
562-
node["kernel"]["machine"] == "ppc64"
563-
EL7PPC64_WHITELIST_LIBS
564-
else
565-
WHITELIST_LIBS
566-
end
567-
end
561+
WHITELIST_LIBS
562+
end
568563

569564
whitelist_libs.each do |reg|
570565
safe ||= true if reg.match(name)
@@ -594,4 +589,4 @@ def check_for_bad_library(bad_libs, good_libs, current_library, name, linked)
594589
[bad_libs, good_libs]
595590
end
596591
end
597-
end
592+
end

0 commit comments

Comments
 (0)