{"action":"closed","number":12556,"pull_request":{"url":"https://api.github.com/repos/ansible/ansible/pulls/12556","id":46248382,"html_url":"https://github.com/ansible/ansible/pull/12556","diff_url":"https://github.com/ansible/ansible/pull/12556.diff","patch_url":"https://github.com/ansible/ansible/pull/12556.patch","issue_url":"https://api.github.com/repos/ansible/ansible/issues/12556","number":12556,"state":"closed","locked":false,"title":"Fix for SLES 11.4, which has now also an /etc/os-release file.","user":{"login":"photoninger","id":6586391,"avatar_url":"https://avatars.githubusercontent.com/u/6586391?v=3","gravatar_id":"","url":"https://api.github.com/users/photoninger","html_url":"https://github.com/photoninger","followers_url":"https://api.github.com/users/photoninger/followers","following_url":"https://api.github.com/users/photoninger/following{/other_user}","gists_url":"https://api.github.com/users/photoninger/gists{/gist_id}","starred_url":"https://api.github.com/users/photoninger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/photoninger/subscriptions","organizations_url":"https://api.github.com/users/photoninger/orgs","repos_url":"https://api.github.com/users/photoninger/repos","events_url":"https://api.github.com/users/photoninger/events{/privacy}","received_events_url":"https://api.github.com/users/photoninger/received_events","type":"User","site_admin":false},"body":"SuSE added a \"/etc/os-release\" file with SLES 11 SP4 and now the setup module returns \"0\" in \"ansible_distribution_release\" instead of \"4\"\r\nBecause \"VERSION_ID\" is not an the last line of this file, release was always set to \"0\" in the loop \"for line in data.splitlines():\"\r\n\r\nHere is an example of \"/etc/os-release\":\r\nNAME=\"SLES\"\r\nVERSION=\"11.4\"\r\nVERSION_ID=\"11.4\"\r\nPRETTY_NAME=\"SUSE Linux Enterprise Server 11 SP4\"\r\nID=\"sles\"\r\nANSI_COLOR=\"0;32\"\r\nCPE_NAME=\"cpe:/o:suse:sles:11:4\"","created_at":"2015-09-29T08:23:14Z","updated_at":"2016-02-04T17:42:26Z","closed_at":"2016-02-04T17:42:26Z","merged_at":null,"merge_commit_sha":"3a30d14e5ef31d5d7c7a1e1987562f64056566a5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ansible/ansible/pulls/12556/commits","review_comments_url":"https://api.github.com/repos/ansible/ansible/pulls/12556/comments","review_comment_url":"https://api.github.com/repos/ansible/ansible/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/12556/comments","statuses_url":"https://api.github.com/repos/ansible/ansible/statuses/ec7d930e5fc01170c2145b5a9bd80d3ab281f73b","head":{"label":"photoninger:sles11.4-fix","ref":"sles11.4-fix","sha":"ec7d930e5fc01170c2145b5a9bd80d3ab281f73b","user":{"login":"photoninger","id":6586391,"avatar_url":"https://avatars.githubusercontent.com/u/6586391?v=3","gravatar_id":"","url":"https://api.github.com/users/photoninger","html_url":"https://github.com/photoninger","followers_url":"https://api.github.com/users/photoninger/followers","following_url":"https://api.github.com/users/photoninger/following{/other_user}","gists_url":"https://api.github.com/users/photoninger/gists{/gist_id}","starred_url":"https://api.github.com/users/photoninger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/photoninger/subscriptions","organizations_url":"https://api.github.com/users/photoninger/orgs","repos_url":"https://api.github.com/users/photoninger/repos","events_url":"https://api.github.com/users/photoninger/events{/privacy}","received_events_url":"https://api.github.com/users/photoninger/received_events","type":"User","site_admin":false},"repo":{"id":23616408,"name":"ansible","full_name":"photoninger/ansible","owner":{"login":"photoninger","id":6586391,"avatar_url":"https://avatars.githubusercontent.com/u/6586391?v=3","gravatar_id":"","url":"https://api.github.com/users/photoninger","html_url":"https://github.com/photoninger","followers_url":"https://api.github.com/users/photoninger/followers","following_url":"https://api.github.com/users/photoninger/following{/other_user}","gists_url":"https://api.github.com/users/photoninger/gists{/gist_id}","starred_url":"https://api.github.com/users/photoninger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/photoninger/subscriptions","organizations_url":"https://api.github.com/users/photoninger/orgs","repos_url":"https://api.github.com/users/photoninger/repos","events_url":"https://api.github.com/users/photoninger/events{/privacy}","received_events_url":"https://api.github.com/users/photoninger/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/photoninger/ansible","description":"Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy. Avoid writing scripts or custom code to deploy and update your applications— automate in a language that approaches plain English, using SSH, with no agents to install on remote systems.","fork":true,"url":"https://api.github.com/repos/photoninger/ansible","forks_url":"https://api.github.com/repos/photoninger/ansible/forks","keys_url":"https://api.github.com/repos/photoninger/ansible/keys{/key_id}","collaborators_url":"https://api.github.com/repos/photoninger/ansible/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/photoninger/ansible/teams","hooks_url":"https://api.github.com/repos/photoninger/ansible/hooks","issue_events_url":"https://api.github.com/repos/photoninger/ansible/issues/events{/number}","events_url":"https://api.github.com/repos/photoninger/ansible/events","assignees_url":"https://api.github.com/repos/photoninger/ansible/assignees{/user}","branches_url":"https://api.github.com/repos/photoninger/ansible/branches{/branch}","tags_url":"https://api.github.com/repos/photoninger/ansible/tags","blobs_url":"https://api.github.com/repos/photoninger/ansible/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/photoninger/ansible/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/photoninger/ansible/git/refs{/sha}","trees_url":"https://api.github.com/repos/photoninger/ansible/git/trees{/sha}","statuses_url":"https://api.github.com/repos/photoninger/ansible/statuses/{sha}","languages_url":"https://api.github.com/repos/photoninger/ansible/languages","stargazers_url":"https://api.github.com/repos/photoninger/ansible/stargazers","contributors_url":"https://api.github.com/repos/photoninger/ansible/contributors","subscribers_url":"https://api.github.com/repos/photoninger/ansible/subscribers","subscription_url":"https://api.github.com/repos/photoninger/ansible/subscription","commits_url":"https://api.github.com/repos/photoninger/ansible/commits{/sha}","git_commits_url":"https://api.github.com/repos/photoninger/ansible/git/commits{/sha}","comments_url":"https://api.github.com/repos/photoninger/ansible/comments{/number}","issue_comment_url":"https://api.github.com/repos/photoninger/ansible/issues/comments{/number}","contents_url":"https://api.github.com/repos/photoninger/ansible/contents/{+path}","compare_url":"https://api.github.com/repos/photoninger/ansible/compare/{base}...{head}","merges_url":"https://api.github.com/repos/photoninger/ansible/merges","archive_url":"https://api.github.com/repos/photoninger/ansible/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/photoninger/ansible/downloads","issues_url":"https://api.github.com/repos/photoninger/ansible/issues{/number}","pulls_url":"https://api.github.com/repos/photoninger/ansible/pulls{/number}","milestones_url":"https://api.github.com/repos/photoninger/ansible/milestones{/number}","notifications_url":"https://api.github.com/repos/photoninger/ansible/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/photoninger/ansible/labels{/name}","releases_url":"https://api.github.com/repos/photoninger/ansible/releases{/id}","deployments_url":"https://api.github.com/repos/photoninger/ansible/deployments","created_at":"2014-09-03T10:36:19Z","updated_at":"2015-03-17T15:15:48Z","pushed_at":"2015-10-26T13:24:06Z","git_url":"git://github.com/photoninger/ansible.git","ssh_url":"git@github.com:photoninger/ansible.git","clone_url":"https://github.com/photoninger/ansible.git","svn_url":"https://github.com/photoninger/ansible","homepage":"http://ansible.com/","size":36166,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"devel"}},"base":{"label":"ansible:devel","ref":"devel","sha":"b22d998d1d9acbda6f458ea99d7e5266d69e035c","user":{"login":"ansible","id":1507452,"avatar_url":"https://avatars.githubusercontent.com/u/1507452?v=3","gravatar_id":"","url":"https://api.github.com/users/ansible","html_url":"https://github.com/ansible","followers_url":"https://api.github.com/users/ansible/followers","following_url":"https://api.github.com/users/ansible/following{/other_user}","gists_url":"https://api.github.com/users/ansible/gists{/gist_id}","starred_url":"https://api.github.com/users/ansible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansible/subscriptions","organizations_url":"https://api.github.com/users/ansible/orgs","repos_url":"https://api.github.com/users/ansible/repos","events_url":"https://api.github.com/users/ansible/events{/privacy}","received_events_url":"https://api.github.com/users/ansible/received_events","type":"Organization","site_admin":false},"repo":{"id":3638964,"name":"ansible","full_name":"ansible/ansible","owner":{"login":"ansible","id":1507452,"avatar_url":"https://avatars.githubusercontent.com/u/1507452?v=3","gravatar_id":"","url":"https://api.github.com/users/ansible","html_url":"https://github.com/ansible","followers_url":"https://api.github.com/users/ansible/followers","following_url":"https://api.github.com/users/ansible/following{/other_user}","gists_url":"https://api.github.com/users/ansible/gists{/gist_id}","starred_url":"https://api.github.com/users/ansible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansible/subscriptions","organizations_url":"https://api.github.com/users/ansible/orgs","repos_url":"https://api.github.com/users/ansible/repos","events_url":"https://api.github.com/users/ansible/events{/privacy}","received_events_url":"https://api.github.com/users/ansible/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ansible/ansible","description":"Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy. Avoid writing scripts or custom code to deploy and update your applications— automate in a language that approaches plain English, using SSH, with no agents to install on remote systems.","fork":false,"url":"https://api.github.com/repos/ansible/ansible","forks_url":"https://api.github.com/repos/ansible/ansible/forks","keys_url":"https://api.github.com/repos/ansible/ansible/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ansible/ansible/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ansible/ansible/teams","hooks_url":"https://api.github.com/repos/ansible/ansible/hooks","issue_events_url":"https://api.github.com/repos/ansible/ansible/issues/events{/number}","events_url":"https://api.github.com/repos/ansible/ansible/events","assignees_url":"https://api.github.com/repos/ansible/ansible/assignees{/user}","branches_url":"https://api.github.com/repos/ansible/ansible/branches{/branch}","tags_url":"https://api.github.com/repos/ansible/ansible/tags","blobs_url":"https://api.github.com/repos/ansible/ansible/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ansible/ansible/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ansible/ansible/git/refs{/sha}","trees_url":"https://api.github.com/repos/ansible/ansible/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ansible/ansible/statuses/{sha}","languages_url":"https://api.github.com/repos/ansible/ansible/languages","stargazers_url":"https://api.github.com/repos/ansible/ansible/stargazers","contributors_url":"https://api.github.com/repos/ansible/ansible/contributors","subscribers_url":"https://api.github.com/repos/ansible/ansible/subscribers","subscription_url":"https://api.github.com/repos/ansible/ansible/subscription","commits_url":"https://api.github.com/repos/ansible/ansible/commits{/sha}","git_commits_url":"https://api.github.com/repos/ansible/ansible/git/commits{/sha}","comments_url":"https://api.github.com/repos/ansible/ansible/comments{/number}","issue_comment_url":"https://api.github.com/repos/ansible/ansible/issues/comments{/number}","contents_url":"https://api.github.com/repos/ansible/ansible/contents/{+path}","compare_url":"https://api.github.com/repos/ansible/ansible/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ansible/ansible/merges","archive_url":"https://api.github.com/repos/ansible/ansible/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ansible/ansible/downloads","issues_url":"https://api.github.com/repos/ansible/ansible/issues{/number}","pulls_url":"https://api.github.com/repos/ansible/ansible/pulls{/number}","milestones_url":"https://api.github.com/repos/ansible/ansible/milestones{/number}","notifications_url":"https://api.github.com/repos/ansible/ansible/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ansible/ansible/labels{/name}","releases_url":"https://api.github.com/repos/ansible/ansible/releases{/id}","deployments_url":"https://api.github.com/repos/ansible/ansible/deployments","created_at":"2012-03-06T14:58:02Z","updated_at":"2016-02-04T14:10:25Z","pushed_at":"2016-02-04T16:41:42Z","git_url":"git://github.com/ansible/ansible.git","ssh_url":"git@github.com:ansible/ansible.git","clone_url":"https://github.com/ansible/ansible.git","svn_url":"https://github.com/ansible/ansible","homepage":"http://ansible.com/","size":53407,"stargazers_count":15171,"watchers_count":15171,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4470,"mirror_url":null,"open_issues_count":1140,"forks":4470,"open_issues":1140,"watchers":15171,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/ansible/ansible/pulls/12556"},"html":{"href":"https://github.com/ansible/ansible/pull/12556"},"issue":{"href":"https://api.github.com/repos/ansible/ansible/issues/12556"},"comments":{"href":"https://api.github.com/repos/ansible/ansible/issues/12556/comments"},"review_comments":{"href":"https://api.github.com/repos/ansible/ansible/pulls/12556/comments"},"review_comment":{"href":"https://api.github.com/repos/ansible/ansible/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ansible/ansible/pulls/12556/commits"},"statuses":{"href":"https://api.github.com/repos/ansible/ansible/statuses/ec7d930e5fc01170c2145b5a9bd80d3ab281f73b"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":5,"review_comments":0,"commits":37,"additions":632,"deletions":380,"changed_files":75}}