sebastien/cuisine — Issue #52: ssh_authorize randomly produces error from user_check()
Author: josephmc5
Created: 2012-02-13 22:02:07+00:00
State: open

I get this error comes up occasionally when I'm deploying to multiple servers. I can't find the pattern that it is occurring yet.

File "/Library/Python/2.6/site-packages/cuisine.py", line 616, in user_check
assert len(d) >= 7, "/etc/passwd entry is expected to have at least 7 fields, got %s in: %s" % (len(d), d.join(":"))
AttributeError: 'list' object has no attribute 'join'

fabfile.py >

def add_ssh_key(username):
mode_sudo()
user_key = file_local_read('user_keys/%s/ssh_key.pub' % username)
ssh_authorize(username, user_key)