NitorCreations / vault

Encrypted AWS key-value storage
0 stars 2 forks source link

python-pyo3: return bytes from lookup to match previous version #568

Closed Esgrove closed 3 days ago

Esgrove commented 3 days ago

Change python library lookup to return bytes to match existing behaviour

New behaviour breaks existing code such as:

    HOOK_URL, SLACK_CHANNEL, SLACK_CHANNEL_ID = vault.lookup(f"dev_carebot_secrets").decode("utf-8").split("!!!")
                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'decode'. Did you mean: 'encode'?