minor nit
authorPeter Palfrader <peter@palfrader.org>
Mon, 12 Mar 2012 13:00:41 +0000 (14:00 +0100)
committerPeter Palfrader <peter@palfrader.org>
Mon, 12 Mar 2012 13:00:41 +0000 (14:00 +0100)
ud-generate

index 548fd4c..3a8fa32 100755 (executable)
@@ -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(','):