Error caused by gpg.import_key in soloist state file
I am getting a strange error in the salt state file when I try to import a GPG key using this state file. Interestingly, the key was imported correctly into 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
I am getting the following error:
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:
+3
source to share
No one has answered this question yet
Check out similar questions: