From d4c677854b112ed2cd6176bf4e0d8fba6f7cd8dd Mon Sep 17 00:00:00 2001 From: Alexander Olofsson <alexander.olofsson@liu.se> Date: Tue, 18 Feb 2025 10:20:45 +0100 Subject: [PATCH] Add TODO on password list changing --- app/models/orchestration/passwordstate.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/orchestration/passwordstate.rb b/app/models/orchestration/passwordstate.rb index a449787..03aaf62 100644 --- a/app/models/orchestration/passwordstate.rb +++ b/app/models/orchestration/passwordstate.rb @@ -10,6 +10,8 @@ module Orchestration # before_provision :remove_passwordstate_host, if: :passwordstate? before_destroy :remove_passwordstate_passwords!, if: :passwordstate? + # TODO - Remove passwords from old list if list ID is changing + # before_update :remove_outdated_passwords, if: :passwordstate? after_update :ensure_passwordstate_passwords, if: :saved_change_to_name? end -- GitLab