mirror of
https://github.com/ceph/ceph
synced 2025-02-23 11:07:35 +00:00
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:
parent
7049efca50
commit
7da0320c56
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user