Icinga / icingaweb2-module-director

The Director aims to be your new favourite Icinga config deployment tool. Director is designed for those who want to automate their configuration deployment and those who want to grant their “point & click” users easy access to the configuration.
https://icinga.com/docs/director/latest
GNU General Public License v2.0
413 stars 201 forks source link

Director basket stack overflow on object name collision #2892

Open w1ll-i-code opened 1 month ago

w1ll-i-code commented 1 month ago

Expected Behavior

I want to import a valid configuration that I have exported already as a basket.

Current Behavior

If the NotificationTemplate and Notification both have the same name and do not already exist in the director the import will fail.

Steps to Reproduce (for bugs)

icingacli director basket restore < director-basket-test.json

Your Environment

director-exception.stderr.log director-exception.stdout.log director-basket-test.json

raviks789 commented 1 month ago

@w1ll-i-code Could you let me know how the notification with the same name as its template was created before a basket snapshot for the corresponding was created? As director currently does not allow to create a notification with the same name as its template.