[Fleet] Unable to reassign agents to another policy when current policy is deleted #90625
Labels
bug
Fixes for quality problems that affect the customer experience
Team:Fleet
Team label for Observability Data Collection Fleet team
Originally posted by @patrykkopycinski in #89372 (comment)
I've found one more issue I think, I've had a case where my agents were assigned to the policy that was removed and when I tried to reassign agents to the new policy I was getting an error that
saved object
with old policy id doesn't existhttps://github.com/elastic/kibana/pull/89372/files#diff-11bcc5bb1eaf5ddae753f9ee690233bef988d13ddbf6baf71c4c8edd0d6a4933L186-L189
I've had to wrap this line into try/catch block to make sure that saved object error is not being thrown
The text was updated successfully, but these errors were encountered: