瀏覽代碼

Fix bug in marking Pantal and Rust Crypto as mutually exclusive.

pull/4176/head
Catalan Lover 1 年之前
父節點
當前提交
0fe9a3df56
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 649BCCF930C07F70
共有 1 個檔案被更改,包括 9 行新增1 行删除
  1. +9
    -1
      roles/custom/matrix-bot-draupnir/tasks/validate_config.yml

+ 9
- 1
roles/custom/matrix-bot-draupnir/tasks/validate_config.yml 查看文件

@@ -45,9 +45,17 @@
with_items:
- {'name': 'matrix_bot_draupnir_config_accessToken', when: "{{ matrix_bot_draupnir_pantalaimon_use }}"}
- {'name': 'matrix_bot_draupnir_config_accessToken', when: "{{ matrix_bot_draupnir_login_native }}"}
- {'name': 'matrix_bot_draupnir_pantalaimon_use', when: "{{ matrix_bot_draupnir_config_experimentalRustCrypto }}"}
when: "item.when | bool and not (vars[item.name] == '' or vars[item.name] is none)"

- name: Fail when matrix_bot_draupnir_config_experimentalRustCrypto is enabled together with matrix_bot_draupnir_pantalaimon_use
ansible.builtin.fail:
msg: >-
Your configuration is trying to enable matrix_bot_draupnir_config_experimentalRustCrypto and matrix_bot_draupnir_pantalaimon_use at the same time.
These settings are mutually incompatible and therefore cant be used at the same time.
when:
- matrix_bot_draupnir_pantalaimon_use
- matrix_bot_draupnir_config_experimentalRustCrypto

- when: "matrix_bot_draupnir_pantalaimon_use == 'true' and matrix_bot_draupnir_pantalaimon_breakage_ignore == 'false'"
block:
- name: Inject warning if Pantalaimon is used together with Draupnir


Loading…
取消
儲存