{"action":"created","issue":{"url":"https://api.github.com/repos/waveclaw/puppet-subscription_manager/issues/6","labels_url":"https://api.github.com/repos/waveclaw/puppet-subscription_manager/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/waveclaw/puppet-subscription_manager/issues/6/comments","events_url":"https://api.github.com/repos/waveclaw/puppet-subscription_manager/issues/6/events","html_url":"https://github.com/waveclaw/puppet-subscription_manager/pull/6","id":122591424,"number":6,"title":"Fixed bug with strings with numbers in them","user":{"login":"rrenshaw","id":10158660,"avatar_url":"https://avatars.githubusercontent.com/u/10158660?v=3","gravatar_id":"","url":"https://api.github.com/users/rrenshaw","html_url":"https://github.com/rrenshaw","followers_url":"https://api.github.com/users/rrenshaw/followers","following_url":"https://api.github.com/users/rrenshaw/following{/other_user}","gists_url":"https://api.github.com/users/rrenshaw/gists{/gist_id}","starred_url":"https://api.github.com/users/rrenshaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrenshaw/subscriptions","organizations_url":"https://api.github.com/users/rrenshaw/orgs","repos_url":"https://api.github.com/users/rrenshaw/repos","events_url":"https://api.github.com/users/rrenshaw/events{/privacy}","received_events_url":"https://api.github.com/users/rrenshaw/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-16T20:10:55Z","updated_at":"2015-12-29T20:38:56Z","closed_at":"2015-12-29T20:38:56Z","pull_request":{"url":"https://api.github.com/repos/waveclaw/puppet-subscription_manager/pulls/6","html_url":"https://github.com/waveclaw/puppet-subscription_manager/pull/6","diff_url":"https://github.com/waveclaw/puppet-subscription_manager/pull/6.diff","patch_url":"https://github.com/waveclaw/puppet-subscription_manager/pull/6.patch"},"body":"When parsing a non-default string from 'subscription-manager config --list', and string with numbers in it would match the pattern (\\d+) and discard all of the string except for the number.  Changed the regex to require whitespace on either side of the number to be considered a number.\r\n\r\nfor example:  hostname = anumberedserver01.domain.com would be return as '1', since the (\\d+) matches just the 01, and then the digit.to_i converts '01' to just 1"},"comment":{"url":"https://api.github.com/repos/waveclaw/puppet-subscription_manager/issues/comments/167873849","html_url":"https://github.com/waveclaw/puppet-subscription_manager/pull/6#issuecomment-167873849","issue_url":"https://api.github.com/repos/waveclaw/puppet-subscription_manager/issues/6","id":167873849,"user":{"login":"waveclaw","id":73705,"avatar_url":"https://avatars.githubusercontent.com/u/73705?v=3","gravatar_id":"","url":"https://api.github.com/users/waveclaw","html_url":"https://github.com/waveclaw","followers_url":"https://api.github.com/users/waveclaw/followers","following_url":"https://api.github.com/users/waveclaw/following{/other_user}","gists_url":"https://api.github.com/users/waveclaw/gists{/gist_id}","starred_url":"https://api.github.com/users/waveclaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waveclaw/subscriptions","organizations_url":"https://api.github.com/users/waveclaw/orgs","repos_url":"https://api.github.com/users/waveclaw/repos","events_url":"https://api.github.com/users/waveclaw/events{/privacy}","received_events_url":"https://api.github.com/users/waveclaw/received_events","type":"User","site_admin":false},"created_at":"2015-12-29T20:38:56Z","updated_at":"2015-12-29T20:38:56Z","body":"This causes the data to be returned as a string instead of a number for numeric options.  Examine the travis CI build failures for why I rejected this."}}