Bug 831633 - The arithmetics of git_repos facter is wrong.
Summary: The arithmetics of git_repos facter is wrong.
Keywords:
Status: CLOSED DUPLICATE of bug 830644
Alias: None
Product: OKD
Classification: Red Hat
Component: Pod
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: Dan McPherson
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-13 13:36 UTC by Johnny Liu
Modified: 2015-05-15 01:57 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-13 13:48:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Johnny Liu 2012-06-13 13:36:05 UTC
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:

Comment 1 Johnny Liu 2012-06-13 13:48:41 UTC

*** 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.