mon: AuthMonitor: dump formatted and plaintext key on 'get-key'

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
This commit is contained in:
Dan Mick 2013-07-10 16:44:56 -07:00
parent 7049efca50
commit 7da0320c56

View File

@ -617,7 +617,11 @@ bool AuthMonitor::preprocess_command(MMonCommand *m)
r = -ENOENT;
goto done;
}
ds << auth.key;
if (f) {
auth.key.encode_formatted("auth", f.get(), rdata);
} else {
auth.key.encode_plaintext(rdata);
}
r = 0;
} else if (prefix == "auth list") {
mon->key_server.list_secrets(ss, ds);