当我尝试使用此状态文件导入GPG密钥时,我在salt状态文件中收到一个奇怪的错误。有趣的是,似乎密钥已正确导入GPG。
gpg.import_key_public:
module.run:
- name: gpg.import_key
- user: ubuntu
- text: |
{{ salt['pillar.get']('gpg:public_key', '') | indent(8) }}
- require:
- pip: python-gnupg
我收到以下错误:
ID: gpg.import_key_public
Function: module.run
Name: gpg.import_key
Result: False
Comment: Module function gpg.import_key threw an exception. Exception: list indices must be integers, not str
Started: 01:03:21.103688
Duration: 10.676 ms
Changes: