Bug 831633
| Summary: | The arithmetics of git_repos facter is wrong. | ||
|---|---|---|---|
| Product: | OKD | Reporter: | Johnny Liu <jialiu> |
| Component: | Pod | Assignee: | Dan McPherson <dmcphers> |
| Status: | CLOSED DUPLICATE | QA Contact: | libra bugs <libra-bugs> |
| Severity: | low | Docs Contact: | |
| Priority: | medium | ||
| Version: | 2.x | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-06-13 13:48:41 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
*** This bug has been marked as a duplicate of bug 830644 *** |
Description of problem: In /usr/lib/ruby/site_ruby/1.8/facter/libra.rb, Facter.add(:git_repos) do git_repos_count = Dir.glob("/var/lib/stickshift/*/git/*.git").count setcode { git_repos_count } end This facter will give incorrect git repo count when there are some Symbolic links. It should use Dir.glob("/var/lib/stickshift/**/git/*.git") This is a regression bug. Version-Release number of selected component (if applicable): devenv-stage_216 How reproducible: Always Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info: