datetime.datetime is not JSON serializable
Bug #1662144 reported by
Sergey Skripnick
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-barbicanclient |
Fix Released
|
Undecided
|
Jeremy Liu |
Bug Description
Unable to retrieve secret in json format using cli. Steps to reproduce:
1. Create a secret:
barbican secret store --name cert-1 \
--secret-type certificate \
--payload "$(cat delme-1.pem | base64)"
2. Try to get it in json format:
barbican secret get -f json \
http://
{
"Status": "ACTIVE",
"Name": "cert-1",
"Algorithm": "aes",
ERROR:barbican:
datetime.
"Created":
To post a comment you must log in.
This should be a barbicanclient bug and also occurs when retrieving json format of acl/ca/ order/container