cloudsidedev / appside

Multitenant environment automation.
http://cloudside.ch
GNU Affero General Public License v3.0
38 stars 7 forks source link

Error while evaluating conditional, 'dict object' has no attribute 'rc' #68

Closed ocean90 closed 7 years ago

ocean90 commented 7 years ago
TASK [db : bootstrap-pxc (RedHat family)] **************************************
fatal: [atlantis]: FAILED! => {"failed": true, "msg": "The conditional check 'bootstrap_check.rc == 1 and conf_wsrep_master == true and ansible_os_family == \"RedHat\"' failed. The error was: error while evaluating conditional (bootstrap_check.rc == 1 and conf_wsrep_master == true and ansible_os_family == \"RedHat\"): 'dict object' has no attribute 'rc'\n\nThe error appears to have been in '/Users/Dominik/Documents/webdev/appflow/playbooks/roles/db/tasks/percona.yml': line 137, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: bootstrap-pxc (RedHat family)\n  ^ here\n"}
...ignoring

TASK [db : bootstrap-pxc (RedHat family)] **************************************
fatal: [atlantis]: FAILED! => {"failed": true, "msg": "The conditional check 'bootstrap_check.rc == 1 and conf_wsrep_master == true and ansible_os_family == \"RedHat\"' failed. The error was: error while evaluating conditional (bootstrap_check.rc == 1 and conf_wsrep_master == true and ansible_os_family == \"RedHat\"): 'dict object' has no attribute 'rc'\n\nThe error appears to have been in '/Users/Dominik/Documents/webdev/appflow/playbooks/roles/db/tasks/percona.yml': line 144, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: bootstrap-pxc (RedHat family)\n  ^ here\n"}

https://github.com/ttssdev/appflow/commit/736f6a59bec43b728fb391ad19467902b13585f3#diff-6a38ac2eeafd90b8917f73451440afccR133, looks like it has been added twice here.

ivomarino commented 7 years ago

the fact that it's twice is "correct", no mistake. CentOS is bit slow so double-doing this thing seems to help, I know it's not super clean but works. Let me check for Ubuntu on atlantis.