You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2017/08/12 16:57:06 UTC
[whimsy] branch master updated: Allow override of auth path
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 4070df8 Allow override of auth path
4070df8 is described below
commit 4070df84e54a52cc973eff10b5dcd79fb2617817
Author: Sebb <se...@apache.org>
AuthorDate: Sat Aug 12 17:57:04 2017 +0100
Allow override of auth path
---
tools/check_consistency.rb | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tools/check_consistency.rb b/tools/check_consistency.rb
index 1b33a25..14de18c 100644
--- a/tools/check_consistency.rb
+++ b/tools/check_consistency.rb
@@ -2,10 +2,12 @@
$LOAD_PATH.unshift File.realpath(File.expand_path('../../lib', __FILE__))
require 'whimsy/asf'
-fix = (ARGV.include? '--fix')
+fix = ARGV.delete '--fix'
ASF::LDAP.bind if fix
+auth_path=ARGV.shift
+
groups = ASF::Group.preload # for performance
committees = ASF::Committee.preload # for performance
projects = ASF::Project.preload
@@ -70,7 +72,7 @@ pods.each do |name,status|
summary[name]['pod'] = status if status == 'current'
end
# Scan the local defines and report differences
-ASF::Authorization.new('asf').each do |grp, mem|
+ASF::Authorization.new('asf',auth_path).each do |grp, mem|
summary[grp]['pod'] = pods[grp] + ' (has local definition)'
if pods[grp] == 'current'
mem.sort!.uniq!
--
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].