Skip to content
This repository has been archived by the owner on Dec 15, 2020. It is now read-only.

Cannot add back a delete query in a pack #2227

Open
guillaumoplatte opened this issue Apr 17, 2020 · 1 comment
Open

Cannot add back a delete query in a pack #2227

guillaumoplatte opened this issue Apr 17, 2020 · 1 comment
Labels

Comments

@guillaumoplatte
Copy link

guillaumoplatte commented Apr 17, 2020

What version of fleet are you using (fleet version --full)?

fleet - version 2.6.0

What operating system are you using?

RHEL 7.6

What did you do?

I tried to add back a query to a pack which was previously removed from this same pack

What did you expect to see?

The query is added back

What did you see instead?

A beautiful error screen. On the server, I have this error message:

inserting scheduled query: Error 1062: Duplicate entry 'cis-1-2-1' for key 'unique_names_in_packs'"

The query I added (and that I want to add again) doesn't even have this name.

@zwass zwass added the Bug label Apr 30, 2020
@zwass
Copy link
Contributor

zwass commented Apr 30, 2020

As a workaround, use fleetctl to edit the pack.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants