fiaasco / borgbackup

Borg backup role
MIT License
16 stars 19 forks source link

Allow undefined borgbackup_servers and borgbackup_management groups. #6

Closed noplanman closed 6 years ago

noplanman commented 6 years ago

When there is no group defined, the conditional to find a value in a list is broken and passes as true.

This PR sets facts to ensure that undefined group lists are regarded as empty.

Without this change, the hosts groups would need to be defined as empty groups:

[borgbackup_servers]
# Empty...

[borgbackup_management]
# Empty...
stroobl commented 6 years ago

Thanks, I missed that indeed.