From fae4f50cffccb2debefd9546232564216b42bd70 Mon Sep 17 00:00:00 2001
From: Branson Stephens <branson.stephens@ligo.org>
Date: Wed, 6 Aug 2014 16:55:12 -0500
Subject: [PATCH] Oops, forgot to remove some of the scaffolding from
 refresh_users_from_ldap.py

---
 ligoauth/management/commands/refresh_users_from_ldap.py | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/ligoauth/management/commands/refresh_users_from_ldap.py b/ligoauth/management/commands/refresh_users_from_ldap.py
index 2a6055655..a24d611b8 100644
--- a/ligoauth/management/commands/refresh_users_from_ldap.py
+++ b/ligoauth/management/commands/refresh_users_from_ldap.py
@@ -38,11 +38,6 @@ class Command(NoArgsCommand):
                                     in ldap_result.get('isMemberOf',[])
                         principal = ldap_result['krbPrincipalName'][0]
 
-                        print "Got ldap entry for %s %s" % (first_name.encode('utf-8'), last_name.encode('utf-8'))
-
-			if not principal:
-			   continue
-
                         # Update/Create LigoLdapUser entry
                         # This is breaking. XXX Do we need to pass in default values for the underlying User object?
                         defaults = {
@@ -62,8 +57,6 @@ class Command(NoArgsCommand):
                                 or (user.is_active != is_active)
 
                         if changed:
-                            print "old values: %s %s %s %s %s" % (user.first_name, user.last_name, user.email, user.username, user.is_active)
-                            print "new values: %s %s %s %s %s" % (first_name, last_name, email, principal, is_active)
                             user.first_name = first_name
                             user.last_name = last_name
                             user.email = email
-- 
GitLab