From 6a91ec075c8a89559c0957c096a99b96b4a58ca1 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 15 Jun 2016 15:56:55 -0400 Subject: common.rb#load_all_users: return a map of uid=>info, instead of an array of infos --- bin/uid-map | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'bin/uid-map') diff --git a/bin/uid-map b/bin/uid-map index 26765fa..10c3fac 100755 --- a/bin/uid-map +++ b/bin/uid-map @@ -3,8 +3,6 @@ load "#{File.dirname(__FILE__)}/common.rb" -users = Dir.glob("#{cfg["yamldir"]}/*.yml").each do |filename| - uid = File.basename(filename).sub(/^([0-9]*)\.yml$/, "\\1").to_i - user = load_user_yaml(filename) +load_all_users.each do |uid,user| puts "#{uid}:#{user["username"]}" end -- cgit v1.2.2