{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/2949","repository_url":"https://api.github.com/repos/ansible/ansible-modules-core","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/2949/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/2949/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/2949/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/2949","id":131128281,"number":2949,"title":"route53 does not honor value order","user":{"login":"caseylucas","id":517834,"avatar_url":"https://avatars.githubusercontent.com/u/517834?v=3","gravatar_id":"","url":"https://api.github.com/users/caseylucas","html_url":"https://github.com/caseylucas","followers_url":"https://api.github.com/users/caseylucas/followers","following_url":"https://api.github.com/users/caseylucas/following{/other_user}","gists_url":"https://api.github.com/users/caseylucas/gists{/gist_id}","starred_url":"https://api.github.com/users/caseylucas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caseylucas/subscriptions","organizations_url":"https://api.github.com/users/caseylucas/orgs","repos_url":"https://api.github.com/users/caseylucas/repos","events_url":"https://api.github.com/users/caseylucas/events{/privacy}","received_events_url":"https://api.github.com/users/caseylucas/received_events","type":"User","site_admin":false},"labels":[{"id":437720344,"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/affects_2.1","name":"affects_2.1","color":"5319e7","default":false},{"id":382351767,"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/aws","name":"aws","color":"c5def5","default":false},{"id":132571937,"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/bug_report","name":"bug_report","color":"fbca04","default":false},{"id":132897218,"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/cloud","name":"cloud","color":"c7def8","default":false},{"id":414073372,"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/waiting_on_maintainer","name":"waiting_on_maintainer","color":"d93f0b","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-02-03T19:28:31Z","updated_at":"2016-12-07T19:08:43Z","closed_at":null,"body":"##### Issue Type:\n\nBug Report\n##### Ansible Version:\n\n```\nansible 2.1.0 (devel 5144ee226e) last updated 2016/01/19 13:32:46 (GMT -500)\n  lib/ansible/modules/core: (detached HEAD ffea58ee86) last updated 2016/01/19 13:32:50 (GMT -500)\n  lib/ansible/modules/extras: (detached HEAD e9450df878) last updated 2016/01/19 13:32:54 (GMT -500)\n  config file =\n  configured module search path = Default w/o overrides\n```\n##### Ansible Configuration:\n##### Environment:\n\nOSX\n##### Summary:\n\nWhen adding multiple addresses to an A record via a comma separated `value` parameter, the route53 module sorts the values before sending them to boto/aws.  However order is important to dns and the returned records do not match the desired input `value`.  The sorting prevents creation of the desired (unsorted) entry in route53 dns.\n\nI don't know why the module makes the calls to `sorted` to sort the values.  If there is no reason, I can submit a PR that removes them.  Indeed, when I removed the sorted calls, the A records were created correctly (without forcing a sort.)\n##### Steps To Reproduce:\n\n```\n    - route53:\n        command: create\n        private_zone: False\n        zone: \"example.com\"\n        type: \"A\"\n        identifier: \"my id\"\n        record: \"one.example.com\"\n        value: \"172.30.1.2,172.30.1.1\"\n        weight: 50\n        ttl: 60\n```\n##### Expected Results:\n\nroute53 A record for one.example.com that returns 172.30.1.2 and 172.30.1.1 (in that order)\n##### Actual Results:\n\nroute53 A record for one.example.com that returns 172.30.1.1 and 172.30.1.2 (in that order - because the module sorted them before it created the entry in aws.)\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/265541590","html_url":"https://github.com/ansible/ansible-modules-core/issues/2949#issuecomment-265541590","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/2949","id":265541590,"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-12-07T19:08:43Z","updated_at":"2016-12-07T19:08:43Z","body":"This repository has been locked. All new issues and pull requests should be filed in https://github.com/ansible/ansible\n\nPlease read through the <a href=\"http://docs.ansible.com/ansible/dev_guide/repomerge.html#move-issues-and-prs-to-new-repo\">repomerge</a> page in the dev guide. The guide contains links to tools which automatically move your issue or pull request to the ansible/ansible repo.\n\n<!-- boilerplate: repomerge -->"}}
{"actor":{"display_login":"ansibot"}}