|
From: <di...@us...> - 2007-01-26 19:03:53
|
Revision: 307
http://safekeep.svn.sourceforge.net/safekeep/?rev=307&view=rev
Author: dimi
Date: 2007-01-26 11:03:51 -0800 (Fri, 26 Jan 2007)
Log Message:
-----------
Cleanup code, we check now the arguments ahead of time.
Modified Paths:
--------------
safekeep/trunk/safekeep
Modified: safekeep/trunk/safekeep
===================================================================
--- safekeep/trunk/safekeep 2007-01-26 18:40:11 UTC (rev 306)
+++ safekeep/trunk/safekeep 2007-01-26 19:03:51 UTC (rev 307)
@@ -599,12 +599,10 @@
debug('Server backup done')
def do_keys(cfgs, ids, status, dump, deploy):
- matches = []
for cfg in cfgs.itervalues():
id = cfg['id']
if ids and id not in ids: continue
info('Handling keys for client: %s' % id)
- matches.append(id)
if not cfg['host']:
info('%s: Client is local, it needs no keys' % id)
continue
@@ -679,9 +677,6 @@
if pipe.close():
error('Failed to deliver the keys to the client')
- for id in ids:
- if id not in matches:
- error('No client with id \'%s\'' % id)
# parses authozied_keys, see sshd(8) man page for details
def parse_authorized_keys(keystext):
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|