git://git.onelab.eu
/
myslice.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
no user password in logs, copy of self.auth avoid overwrite
[myslice.git]
/
manifold
/
manifoldapi.py
diff --git
a/manifold/manifoldapi.py
b/manifold/manifoldapi.py
index
ee1f82e
..
cd14efe
100644
(file)
--- a/
manifold/manifoldapi.py
+++ b/
manifold/manifoldapi.py
@@
-1,5
+1,5
@@
# Manifold API Python interface
# Manifold API Python interface
-import xmlrpclib
+import
copy,
xmlrpclib
from myslice.config import Config
from myslice.config import Config
@@
-70,7
+70,11
@@
class ManifoldAPI:
try:
if debug:
print "====> ManifoldAPI.%s"%repr(),"url",self.url
try:
if debug:
print "====> ManifoldAPI.%s"%repr(),"url",self.url
- print "=> auth",self.auth
+ # No password in the logs
+ logAuth = copy.copy(self.auth)
+ if 'AuthString' in logAuth:
+ logAuth['AuthString']="XXX"
+ print "=> auth",logAuth
print "=> args",args,"kwds",kwds
annotations = {
'authentication': self.auth
print "=> args",args,"kwds",kwds
annotations = {
'authentication': self.auth