TritonDataCenter / python-manta

Python SDK for Manta (community maintained)
MIT License
25 stars 18 forks source link

Support fingerprints with prefixes in MANTA_KEY_ID #41

Closed bdha closed 7 years ago

bdha commented 7 years ago

The following fingerprints work:

export MANTA_KEY_ID=cb:ec:9e:3a:d2:bd:7a:73:01:18:44:a2:8d:56:f3:b3
export MANTA_KEY_ID=xNMPOkDLdv9Sb8H18MLGKrLQ6lBMH9iyfVUk22uSWf4

However, the output of

export MANTA_KEY_ID=$(ssh-keygen -l -f $HOME/.ssh/id_rsa.pub | awk '{print $2}')

prefixes the algo type to the key.

e.g.,

$ ssh-keygen -l -f $HOME/.ssh/id_rsa.pub | awk '{print $2}'
SHA256:xNMPOkDLdv9Sb8H18MLGKrLQ6lBMH9iyfVUk22uSWf4

Which does not work with python-manta. It does work for the node tools, however.