Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty expires_at on snapshots, tiny API inconsistency #14538

Open
edlerd opened this issue Nov 26, 2024 · 0 comments
Open

Empty expires_at on snapshots, tiny API inconsistency #14538

edlerd opened this issue Nov 26, 2024 · 0 comments
Labels
Bug Confirmed to be a bug
Milestone

Comments

@edlerd
Copy link
Contributor

edlerd commented Nov 26, 2024

Required information

  • Distribution: Snap
  • Distribution version: 6.1

Issue description

A tiny inconsistency with responses on the snapshot API exists.

  • Instance snapshots without an expiration date:
    GET 1.0/instances/:name?project=default&recursion=2 returns expires_at: "0001-01-01T00:00:00Z".
  • Volume snapshots without an expiration date:
    GET 1.0/storage-pools/:pool/volumes/custom/:name/snapshots?project=default&recursion=2 returns expires_at: null.

I think both instance and volume snapshots APIs should return the same format for an empty expiration date.

@tomponline tomponline added the Bug Confirmed to be a bug label Nov 26, 2024
@tomponline tomponline modified the milestones: lxd-6.2, lxd-6.3 Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Confirmed to be a bug
Projects
None yet
Development

No branches or pull requests

2 participants