Fingerprint: add new signature method
commit c42a54795d
introcuded a bug by
using fp.to_string(). Replace this with fp.signature() which correctly
returns the full fingerprint instead of the short version.
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
This commit is contained in:
@ -100,7 +100,7 @@ impl From<&KeyConfig> for KeyInfo {
|
||||
fingerprint: key_config
|
||||
.fingerprint
|
||||
.as_ref()
|
||||
.map(|fp| fp.to_string()),
|
||||
.map(|fp| fp.signature()),
|
||||
hint: key_config.hint.clone(),
|
||||
}
|
||||
}
|
||||
|
@ -190,5 +190,5 @@ pub fn complete_key_fingerprint(_arg: &str, _param: &HashMap<String, String>) ->
|
||||
Err(_) => return Vec::new(),
|
||||
};
|
||||
|
||||
data.keys().map(|fp| fp.to_string()).collect()
|
||||
data.keys().map(|fp| fp.signature()).collect()
|
||||
}
|
||||
|
Reference in New Issue
Block a user