fastly/cli

ObjectStore date information is wrong

Closed this issue ยท 4 comments

Version

Fastly CLI version v8.0.0 (10b5dbe)
Built with go version go1.20.1 linux/amd64
Viceroy version: viceroy 0.3.5

What happened

The date information (Created (UTC) and Last edited (UTC)) you get in response from running the object-store list-command are always the "now" date-time. So every new minute you re-run the command, you get new date information.

fastly object-store list

Example response 1

ID: gxjqiwlgmomcdip1o0oacl
Name: test-store
Created (UTC): 2023-03-15 14:25
Last edited (UTC): 2023-03-15 14:25

...a few minutes later...

Example response 2

ID: gxjqiwlgmomcdip1o0oacl
Name: test-store
Created (UTC): 2023-03-15 14:29
Last edited (UTC): 2023-03-15 14:29

Thanks, @marlun78 for raising this issue. It looks to be with the API itself rather than the CLI.

If you run the following curl command you should see the same behaviour...

curl -s "https://api.fastly.com/resources/stores/object" -H "Fastly-Key: $FASTLY_API_TOKEN" -H "Accept: application/json"

I've reached out to the relevant team internally to investigate.

I've had an update from the team to say they've identified the issue and are actively working on a solution.

Great, thanks!

Hi @marlun78 I believe the API has now been updated.