Do not show password in debug messages
authorAnas Nashif <anas.nashif@intel.com>
Tue, 2 Oct 2012 20:54:17 +0000 (13:54 -0700)
committerGui Chen <gui.chen@intel.com>
Wed, 12 Dec 2012 11:33:43 +0000 (19:33 +0800)
mic/3rdparty/pykickstart/urlgrabber/grabber.py
mic/utils/rpmmisc.py

index 20e7899..fefdab3 100644 (file)
@@ -688,7 +688,7 @@ class URLParser:
                     user, password = user_pass.split(':', 1)
             except ValueError, e:
                 raise URLGrabError(1, _('Bad URL: %s') % url)
-            if DEBUG: DEBUG.info('adding HTTP auth: %s, %s', user, password)
+            if DEBUG: DEBUG.info('adding HTTP auth: %s, XXXXXXXX', user)
             auth_handler.add_password(None, host, user, password)
 
         return (scheme, host, path, parm, query, frag)
index 7cb1069..d762061 100644 (file)
@@ -612,7 +612,7 @@ def checkRepositoryEULA(name, repo):
             except ValueError, e:
                 raise CreatorError('Bad URL: %s' % url)
 
-            msger.verbose("adding HTTP auth: %s, %s" %(user, password))
+            msger.verbose("adding HTTP auth: %s, XXXXXXXX" %(user))
             auth_handler.add_password(None, host, user, password)
             tmphandlers.append(auth_handler)
             url = scheme + "://" + host + path + parm + query + frag