methodize writing keyfile

add-key-for-user
nate 2018-02-18 00:10:23 -08:00
parent 96cdd273f5
commit 23c7322cac
1 changed files with 3 additions and 0 deletions

View File

@ -116,6 +116,9 @@ class Townie(User):
logging.error(error)
return
self.write_authorized_keys()
def write_authorized_keys(self):
# Write out authorized_keys file
# Why is this a call out to a python script? There's no secure way with
# sudoers to allow this code to write to a file; if this code was to be