{"action":"opened","issue":{"url":"https://api.github.com/repos/jacob-hudson/ansible-akamai/issues/1","repository_url":"https://api.github.com/repos/jacob-hudson/ansible-akamai","labels_url":"https://api.github.com/repos/jacob-hudson/ansible-akamai/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/jacob-hudson/ansible-akamai/issues/1/comments","events_url":"https://api.github.com/repos/jacob-hudson/ansible-akamai/issues/1/events","html_url":"https://github.com/jacob-hudson/ansible-akamai/issues/1","id":337936778,"node_id":"MDU6SXNzdWUzMzc5MzY3Nzg=","number":1,"title":"Credentials are not get correctly from .edgerc","user":{"login":"ciobancai","id":791109,"node_id":"MDQ6VXNlcjc5MTEwOQ==","avatar_url":"https://avatars2.githubusercontent.com/u/791109?v=4","gravatar_id":"","url":"https://api.github.com/users/ciobancai","html_url":"https://github.com/ciobancai","followers_url":"https://api.github.com/users/ciobancai/followers","following_url":"https://api.github.com/users/ciobancai/following{/other_user}","gists_url":"https://api.github.com/users/ciobancai/gists{/gist_id}","starred_url":"https://api.github.com/users/ciobancai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ciobancai/subscriptions","organizations_url":"https://api.github.com/users/ciobancai/orgs","repos_url":"https://api.github.com/users/ciobancai/repos","events_url":"https://api.github.com/users/ciobancai/events{/privacy}","received_events_url":"https://api.github.com/users/ciobancai/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-03T14:57:30Z","updated_at":"2018-07-03T14:57:30Z","closed_at":null,"author_association":"NONE","body":"I run the following playbook and I'm receiving the following error \r\n\r\n```\r\nThe full traceback is:\r\nTraceback (most recent call last):\r\n  File \"/var/folders/rv/rd498xxn7k74r4yd70hlx5rd3g1mj5/T/ansible_DuxHy4/ansible_module_akamai.py\", line 128, in <module>\r\n    main()\r\n  File \"/var/folders/rv/rd498xxn7k74r4yd70hlx5rd3g1mj5/T/ansible_DuxHy4/ansible_module_akamai.py\", line 120, in main\r\n    is_error, has_changed, result = authenticate(module.params)\r\n  File \"/var/folders/rv/rd498xxn7k74r4yd70hlx5rd3g1mj5/T/ansible_DuxHy4/ansible_module_akamai.py\", line 99, in authenticate\r\n    response = session.get(urljoin(baseurl, endpoint))\r\n  File \"/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/sessions.py\", line 525, in get\r\n    return self.request('GET', url, **kwargs)\r\n  File \"/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/sessions.py\", line 498, in request\r\n    prep = self.prepare_request(req)\r\n  File \"/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/sessions.py\", line 441, in prepare_request\r\n    hooks=merge_hooks(request.hooks, self.hooks),\r\n  File \"/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/models.py\", line 309, in prepare\r\n    self.prepare_url(url, params)\r\n  File \"/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/models.py\", line 386, in prepare_url\r\n    raise InvalidURL(\"Invalid URL %r: No host supplied\" % url)\r\nrequests.exceptions.InvalidURL: Invalid URL u'https:///papi/v1/groups': No host supplied\r\n```\r\n\r\n\r\n```\r\nciobancaiv2 ~/w/g/ansible-akamai> python --version                                                                                                                                                                                                       2 master!?\r\nPython 2.7.15\r\nciobancaiv2 ~/w/g/ansible-akamai> ansible --version                                                                                                                                                                                                        master!?\r\nansible 2.6.0\r\n  config file = /Users/ciobancaiv2/work/git/ansible-akamai/ansible.cfg\r\n  configured module search path = [u'/Users/ciobancaiv2/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']\r\n  ansible python module location = /usr/local/lib/python2.7/site-packages/ansible\r\n  executable location = /usr/local/bin/ansible\r\n  python version = 2.7.15 (default, Jun 17 2018, 12:46:58) [GCC 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.2)]\r\n```\r\n\r\nIn library/akamai.py if I add manually the credentials, the playbook run without any issue. In my home directory I have the .edgerc file with the api credentials from Akamai. \r\n\r\nIf you have time can you please look over it ?"}}
{"actor":{"display_login":"ciobancai"}}