Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Comments

@G-Bianchi
Copy link

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))

javierm added a commit to consuldemocracy/installer that referenced this issue Oct 4, 2024
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant