Permalink
Browse files

fabfile: Support first / last name with spaces

  • Loading branch information...
1 parent 01cc103 commit 918394e5f247df8f2c63f16631b7df1d533fd1f1 @derf derf committed Sep 30, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 fabfile.py
View
@@ -58,7 +58,7 @@ def checkrestart():
@hosts('backend.chaosdorf.de')
def ldapuser(user_name, first_name, last_name):
- sudo('cpu useradd -f %s -E %s -e %s@chaosdorf.de %s' % (first_name, last_name, user_name, user_name))
+ sudo('cpu useradd -f "%s" -E "%s" -e %s@chaosdorf.de %s' % (first_name, last_name, user_name, user_name))
sudo('ldappasswd -y /root/ldap_password -x -W -D cn=admin,dc=chaosdorf,dc=de uid=%s,ou=People,dc=chaosdorf,dc=de' % user_name)
@hosts('backend.chaosdorf.de')

0 comments on commit 918394e

Please sign in to comment.