You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error while evaluating conditional (not ansible_check_mode and rvm1_gpg_keys != '' and (gpg_import is not defined or gpg_import.rc != 0)): 'dict object' has no attribute 'rc'
#226
Open
G-Bianchi opened this issue
Apr 19, 2021
· 0 comments
rvm1-ansible/tasks/rvm.yml, 'Import GPG keys from keyservers' on line 30 cause an error while evaluating conditional (not ansible_check_mode and rvm1_gpg_keys != '' and (gpg_import is not defined or gpg_import.rc != 0)): 'dict object' has no attribute 'rc'
I suggest :
when: not ansible_check_mode and rvm1_gpg_keys != '' and (gpg_import is not defined or (gpg_import.rc | default('') != 0))
The text was updated successfully, but these errors were encountered:
This was consistently failing on our CI with Ubuntu 22.04 and Ubuntu
24.04 since a few weeks ago, for unknown reasons (it used to work fine
most of the time). The fix is taken from the rvm1-ansible issues [1].
[1] rvm/rvm1-ansible#226
rvm1-ansible/tasks/rvm.yml, 'Import GPG keys from keyservers' on line 30 cause an error while evaluating conditional (not ansible_check_mode and rvm1_gpg_keys != '' and (gpg_import is not defined or gpg_import.rc != 0)): 'dict object' has no attribute 'rc'
I suggest :
when: not ansible_check_mode and rvm1_gpg_keys != '' and (gpg_import is not defined or (gpg_import.rc | default('') != 0))
The text was updated successfully, but these errors were encountered: