From 4957c4c19926c933ca34e64b1b841b9876df2821 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Mon, 11 May 2009 12:06:37 -0300 Subject: [PATCH] ActionItem305: filtering out forbidden logins --- script/import-cooperation.net | 7 +++++++ 1 file changed, 7 insertions(+), 0 deletions(-) diff --git a/script/import-cooperation.net b/script/import-cooperation.net index e3f4031..01b42e9 100755 --- a/script/import-cooperation.net +++ b/script/import-cooperation.net @@ -62,6 +62,9 @@ class Progress end end +FORBIDDEN_LOGINS = %w[ + info +] Progress.instance.start(ARGV.size) for username in ARGV Progress.instance.step @@ -73,6 +76,10 @@ for username in ARGV # create user login = username.gsub(/@.*$/, '') + if FORBIDDEN_LOGINS.include?(login) + $stderr.puts "E: not importing #{username}, #{login} is not an allowed login" + next + end user = User.new(:login => login, :email => username, :environment => environment) # import person data -- libgit2 0.21.2