Project

General

Profile

Actions

Bug #36024

closed

sync-plans not in sync with foreman-maintan data.yml

Added by Bernhard Suttner almost 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
-

Description

Imagine, that the data.yml has the following data:


[root@or ~]# cat /var/lib/foreman-maintain/data.yml
---
:default:
:sync_plans:
:enabled: []
:disabled:
- 2

Now, you go to the sync-plan UI page, and delete the sync plan with id '2'.
If you now try to do a offline backup, it will fail because hammer tries to "enable" the sync-plan with id 2 - which was deleted before.

The root cause of this, that the code doesn't validate, that the IDs of the sync-plan still exist in the DB.

Actions

Also available in: Atom PDF