Просмотр исходного кода

Make matrix_bot_postmoogle_admins=[] when matrix_admin not set

.. instead of `['']`.

The final result in the `env` file will be the same (`POSTMOOGLE_ADMINS=`)
in both cases, but it's better to avoid confusion.
pull/2081/head
Slavi Pantaleev 3 лет назад
Родитель
Сommit
09d4a9beab
1 измененных файлов: 3 добавлений и 2 удалений
  1. +3
    -2
      roles/matrix-bot-postmoogle/defaults/main.yml

+ 3
- 2
roles/matrix-bot-postmoogle/defaults/main.yml Просмотреть файл

@@ -82,6 +82,7 @@ matrix_bot_postmoogle_maxsize: '1024'
# A list of whitelisted users allowed to use the bridge.
# If not defined, everyone is allowed.
# Example set of rules:
# matrix_bot_postmoogle_users:
# - @someone:example.com
# - @another:example.com
# - @bot.*:example.com
@@ -91,12 +92,12 @@ matrix_bot_postmoogle_users:

# A list of admins
# Example set of rules:
# matrix_bot_postmoogle_admins:
# - @someone:example.com
# - @another:example.com
# - @bot.*:example.com
# - @*:another.com
matrix_bot_postmoogle_admins:
- "{{ matrix_admin }}"
matrix_bot_postmoogle_admins: "{{ [matrix_admin] if matrix_admin else [] }}"

# Sentry DSN
matrix_bot_postmoogle_sentry: ''


Загрузка…
Отмена
Сохранить