Skip to content

Instantly share code, notes, and snippets.

@omgjlk
Created May 25, 2016 19:44
Show Gist options
  • Select an option

  • Save omgjlk/9e5897187f1b27d5cdcd54b89f8cb875 to your computer and use it in GitHub Desktop.

Select an option

Save omgjlk/9e5897187f1b27d5cdcd54b89f8cb875 to your computer and use it in GitHub Desktop.
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'list' object has no attribute 'startswith'
fatal: [10.230.7.178]: FAILED! => {"changed": false, "failed": true, "module_stderr":
"Traceback (most recent call last):\n File \"/tmp/ansible_MRA1FL/ansible_module_rabbitmq_user.py\",
line 302, in <module>\n main()\n File \"/tmp/ansible_MRA1FL/ansible_module_rabbitmq_user.py\",
line 274, in main\n if rabbitmq_user.get():\n File \"/tmp/ansible_MRA1FL/ansible_module_rabbitmq_user.py\",
line 155, in get\n users = self._exec(['list_users'], True)\n File \"/tmp/ansible_MRA1FL/ansible_module_rabbitmq_user.py\",
line 150, in _exec\n rc, out, err = self.module.run_command(cmd + args, check_rc=True)\n
File \"/tmp/ansible_MRA1FL/ansible_modlib.zip/ansible/module_utils/basic.py\", line 1993, in run_command\n
File \"/usr/lib/python2.7/posixpath.py\", line 261, in expanduser\n
if not path.startswith('~'):\nAttributeError: 'list' object has no attribute 'startswith'\n", "module_stdout": "",
"msg": "MODULE FAILURE", "parsed": false}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment