Bug 831633 - The arithmetics of git_repos facter is wrong.
The arithmetics of git_repos facter is wrong.
Status: CLOSED DUPLICATE of bug 830644
Product: OpenShift Origin
Classification: Red Hat
Component: Pod (Show other bugs)
Unspecified Unspecified
medium Severity low
: ---
: ---
Assigned To: Dan McPherson
libra bugs
Depends On:
  Show dependency treegraph
Reported: 2012-06-13 09:36 EDT by Johnny Liu
Modified: 2015-05-14 21:57 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-06-13 09:48:41 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Johnny Liu 2012-06-13 09:36:05 EDT
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 }

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):

How reproducible:

Steps to Reproduce:
Actual results:

Expected results:

Additional info:
Comment 1 Johnny Liu 2012-06-13 09:48:41 EDT

*** This bug has been marked as a duplicate of bug 830644 ***

Note You need to log in before you can comment on or make changes to this bug.