[Pkg-owncloud-commits] [python-owncloud] 64/96: issue 20, debug printing will only password safe the password if it's there to begin with.
Sandro Knauß
hefee-guest at moszumanska.debian.org
Fri Nov 22 01:28:28 UTC 2013
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository python-owncloud.
commit 8bfc71f0fe2145d22e72b9f807c8dd9abf8b4ebd
Author: Craig <csawyer at yumaed.org>
Date: Thu Mar 28 14:14:33 2013 -0700
issue 20, debug printing will only password safe the password if it's there to begin with.
---
csync/csync.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/csync/csync.py b/csync/csync.py
index da80d6a..3b2fa68 100755
--- a/csync/csync.py
+++ b/csync/csync.py
@@ -246,9 +246,9 @@ def getConfig(args):
if DEBUG:
print 'conifguration info received from %s:' % cfgFile
pcfg = copy.copy(cfg)
- if pcfg['pass']:
+ if pcfg.has_key('pass'):
pcfg['pass'] = PASSWORD_SAFE
- pprint.pprint(pcfg)
+ pprint.pprint(pcfg)
cfg.setdefault('davPath', 'remote.php/webdav/')
cfg.setdefault('sslfingerprint' '')
cfg.setdefault('pass', None)
@@ -263,9 +263,9 @@ def getConfig(args):
if DEBUG:
print 'Finished config file:'
pcfg = copy.copy(cfg)
- if pcfg['pass']:
+ if pcfg.has_key('pass'):
pcfg['pass'] = PASSWORD_SAFE
- pprint.pprint(pcfg)
+ pprint.pprint(pcfg)
return cfg
def startSync(args):
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/python-owncloud.git
More information about the Pkg-owncloud-commits
mailing list