From: Peter Palfrader Date: Mon, 12 Mar 2012 13:00:41 +0000 (+0100) Subject: minor nit X-Git-Tag: userdir-ldap-0.3.85~65^2~12 X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=commitdiff_plain;h=13d9a7f7d008f5f653cc08145be9e71ee33e999d minor nit --- diff --git a/ud-generate b/ud-generate index 548fd4c..3a8fa32 100755 --- a/ud-generate +++ b/ud-generate @@ -423,9 +423,8 @@ def GenSSHtarballs(global_dir, userlist, ssh_userkeys, grouprevmap, target): print "User %s is supposed to have their key exported to host %s but their primary group (gid: %d) isn't in LDAP" % (f, CurrentHost, userlist[f]) continue - contents = ssh_userkeys[f] lines = [] - for line in contents: + for line in ssh_userkeys[f]: if line.startswith("allowed_hosts=") and ' ' in line: machines, line = line.split('=', 1)[1].split(' ', 1) if CurrentHost not in machines.split(','):