Closed auspex closed 13 years ago
I have to confess, I might have missed something since I don't actually use this myself, but I stole the code for something else and got odd results.
def bootstrap_users(): """ create users if needed """ ... append(key, '~%s/.ssh/authorized_keys' % owner, use_sudo=True)
The signature of the function is def append(filename, text, use_sudo=False, partial=True, escape=True) but you're appending the text to the file, instead of vice-versa, so my usage of the code resulted in:
def append(filename, text, use_sudo=False, partial=True, escape=True)
[otndc@kil-otndev-1:22000] run: /bin/bash -l -c "PATH=\$PATH:\"/appl/Plone\" echo '~otndc/.ssh/authorized_keys' >> ssh-rsa ...== hostout@hostout"
Somewhere, I guess, I have a file named 'ssh-rsa'
Fabric changed this method signature between 0.9 and 1.0. The master version of hostout has a fix for this,
Sorry, I really should have checked...
derek
fixed in trunk
I have to confess, I might have missed something since I don't actually use this myself, but I stole the code for something else and got odd results.
The signature of the function is
def append(filename, text, use_sudo=False, partial=True, escape=True)
but you're appending the text to the file, instead of vice-versa, so my usage of the code resulted in:Somewhere, I guess, I have a file named 'ssh-rsa'