Add TODO on actions/keys about extracting ssh key chop

This commit is contained in:
Juan Cruz Viotti 2015-02-03 14:54:07 -04:00
parent 33b66effc2
commit 0a7b83308a

View File

@ -36,6 +36,8 @@ exports.info =
action: (params, options, done) ->
resin.models.key.get params.id, (error, key) ->
return done(error) if error?
# TODO: Move this chop functionality to resin.models.key
key.public_key = '\n' + _.str.chop(key.public_key, resin.settings.get('sshKeyWidth')).join('\n')
console.log(visuals.widgets.table.vertical(key, [ 'id', 'title', 'public_key' ]))
return done()