{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3049","repository_url":"https://api.github.com/repos/ansible/ansible-modules-core","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3049/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3049/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3049/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/3049","id":134084350,"number":3049,"title":"Deleting elasticache cluster on redis throws TypeError","user":{"login":"jamesongithub","id":4452738,"avatar_url":"https://avatars.githubusercontent.com/u/4452738?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesongithub","html_url":"https://github.com/jamesongithub","followers_url":"https://api.github.com/users/jamesongithub/followers","following_url":"https://api.github.com/users/jamesongithub/following{/other_user}","gists_url":"https://api.github.com/users/jamesongithub/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesongithub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesongithub/subscriptions","organizations_url":"https://api.github.com/users/jamesongithub/orgs","repos_url":"https://api.github.com/users/jamesongithub/repos","events_url":"https://api.github.com/users/jamesongithub/events{/privacy}","received_events_url":"https://api.github.com/users/jamesongithub/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/affects_2.0","name":"affects_2.0","color":"5319e7"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/aws","name":"aws","color":"c5def5"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/bug_report","name":"bug_report","color":"fbca04"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/cloud","name":"cloud","color":"c7def8"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/P2","name":"P2","color":"fad8c7"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/waiting_on_maintainer","name":"waiting_on_maintainer","color":"d93f0b"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-02-16T20:08:01Z","updated_at":"2016-10-22T09:01:51Z","closed_at":null,"body":"##### Issue Type:\r\n- Bug Report\r\n\r\n##### Component Name:\r\nelasticache module\r\n\r\n##### Ansible Version:\r\nansible 2.0.0.2\r\n\r\n##### Ansible Configuration:\r\n`any_errors_fatal = True`\r\n\r\n##### Environment:\r\nredis on aws elasticache\r\n\r\n##### Summary:\r\n\r\nErrors on deleting cluster.\r\n\r\n```\r\nAn exception occurred during task execution. The full traceback is:\r\nTraceback (most recent call last):\r\n  File \"/Users/james/.ansible/tmp/ansible-tmp-1455652399.45-51638225824520/elasticache\", line 2727, in <module>\r\n    main()\r\n  File \"/Users/james/.ansible/tmp/ansible-tmp-1455652399.45-51638225824520/elasticache\", line 562, in main\r\n    module.exit_json(**facts_result)\r\n  File \"/Users/james/.ansible/tmp/ansible-tmp-1455652399.45-51638225824520/elasticache\", line 2099, in exit_json\r\n    kwargs = remove_values(kwargs, self.no_log_values)\r\n  File \"/Users/james/.ansible/tmp/ansible-tmp-1455652399.45-51638225824520/elasticache\", line 982, in remove_values\r\n    return dict((k, remove_values(v, no_log_strings)) for k, v in value.items())\r\n  File \"/Users/james/.ansible/tmp/ansible-tmp-1455652399.45-51638225824520/elasticache\", line 982, in <genexpr>\r\n    return dict((k, remove_values(v, no_log_strings)) for k, v in value.items())\r\n  File \"/Users/james/.ansible/tmp/ansible-tmp-1455652399.45-51638225824520/elasticache\", line 982, in remove_values\r\n    return dict((k, remove_values(v, no_log_strings)) for k, v in value.items())\r\n  File \"/Users/james/.ansible/tmp/ansible-tmp-1455652399.45-51638225824520/elasticache\", line 982, in <genexpr>\r\n    return dict((k, remove_values(v, no_log_strings)) for k, v in value.items())\r\n  File \"/Users/james/.ansible/tmp/ansible-tmp-1455652399.45-51638225824520/elasticache\", line 982, in remove_values\r\n    return dict((k, remove_values(v, no_log_strings)) for k, v in value.items())\r\n  File \"/Users/james/.ansible/tmp/ansible-tmp-1455652399.45-51638225824520/elasticache\", line 982, in <genexpr>\r\n    return dict((k, remove_values(v, no_log_strings)) for k, v in value.items())\r\n  File \"/Users/james/.ansible/tmp/ansible-tmp-1455652399.45-51638225824520/elasticache\", line 980, in remove_values\r\n    return [remove_values(elem, no_log_strings) for elem in value]\r\n  File \"/Users/james/.ansible/tmp/ansible-tmp-1455652399.45-51638225824520/elasticache\", line 991, in remove_values\r\n    raise TypeError('Value of unknown type: %s, %s' % (type(value), value))\r\nTypeError: Value of unknown type: <type 'object'>, <object object at 0x10bf01100>\r\n\r\nfatal: [localhost]: FAILED! => {\"changed\": false, \"failed\": true, \"invocation\": {\"module_name\": \"elasticache\"}, \"parsed\": false}\r\n```\r\n\r\n\r\n##### Steps To Reproduce:\r\n\r\nCreate cluster with elasticache module. Attempt to delete cluster with `state: absent`. If it helps, the cluster name has a hyphen. e.g. `abc-redis`\r\n\r\n```\r\n- name: launch elasticache instance\r\n  elasticache:\r\n    cache_engine_version: 2.8.24\r\n    cache_port: 6379\r\n    cache_security_groups: []\r\n    cache_subnet_group: ---\r\n    engine: redis\r\n    hard_modify: false\r\n    name: abc-redis\r\n    node_type: cache.t2.micro\r\n    num_nodes: 1\r\n    region: ----\r\n    security_group_ids: ----\r\n    state: present\r\n    wait: true\r\n\r\n- name: terminate cluster\r\n  elasticache:\r\n    name: abc-redis\r\n    region: ---\r\n    state: absent\r\n```\r\n\r\n##### Expected Results:\r\n\r\nExpect cluster to be deleted without errors.\r\n\r\n##### Actual Results:\r\n\r\nAs far as I can tell the cluster is gone from the AWS console, however there shouldn't be any errors thrown.\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/255516438","html_url":"https://github.com/ansible/ansible-modules-core/issues/3049#issuecomment-255516438","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3049","id":255516438,"user":{"login":"ansibot","id":6585283,"avatar_url":"https://avatars.githubusercontent.com/u/6585283?v=3","gravatar_id":"","url":"https://api.github.com/users/ansibot","html_url":"https://github.com/ansibot","followers_url":"https://api.github.com/users/ansibot/followers","following_url":"https://api.github.com/users/ansibot/following{/other_user}","gists_url":"https://api.github.com/users/ansibot/gists{/gist_id}","starred_url":"https://api.github.com/users/ansibot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansibot/subscriptions","organizations_url":"https://api.github.com/users/ansibot/orgs","repos_url":"https://api.github.com/users/ansibot/repos","events_url":"https://api.github.com/users/ansibot/events{/privacy}","received_events_url":"https://api.github.com/users/ansibot/received_events","type":"User","site_admin":false},"created_at":"2016-10-22T09:01:51Z","updated_at":"2016-10-22T09:01:51Z","body":"@jsdalton, @alachaum, ping. This issue is still waiting on your response.\n[click here for bot help](https://github.com/ansible/ansibullbot/blob/master/ISSUE_HELP.md)\n<!--- boilerplate: issue_renotify_maintainer --->"}}
{"actor":{"display_login":"ansibot"}}