Skip to content

Support --format on incus admin sql #1307

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

Closed
alex14641 opened this issue Oct 16, 2024 · 0 comments
Closed

Support --format on incus admin sql #1307

alex14641 opened this issue Oct 16, 2024 · 0 comments
Assignees
Labels
Easy Good for new contributors
Milestone

Comments

@alex14641
Copy link
Contributor

It would be useful for incus admin sql query output to be easily parsed by scripts. E.g:

incus admin sql --raw --raw-delimiter " " global "select key,value from storage_pools_config where key = 'source'"
source /spare/incus-6.6/data/disks/container.img
source /spare/incus-6.6/data/disks/vm.img

Here is a patch.
admin-sql.diff.txt

@stgraber stgraber added Feature Easy Good for new contributors labels Oct 18, 2024
@stgraber stgraber added this to the incus-6.7 milestone Oct 18, 2024
@stgraber stgraber self-assigned this Oct 18, 2024
@stgraber stgraber changed the title New feature: add ability to print admin sql query output in raw (non-table) format. Support --format on incus admin sql Oct 18, 2024
stgraber added a commit to stgraber/incus that referenced this issue Oct 18, 2024
@hallyn hallyn closed this as completed in 66598dc Oct 18, 2024
stgraber added a commit that referenced this issue Dec 4, 2024
Closes #1307

Signed-off-by: Stéphane Graber <[email protected]>
bketelsen pushed a commit to bketelsen/incus that referenced this issue Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Easy Good for new contributors
Development

No branches or pull requests

2 participants