{"action":"opened","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4869","repository_url":"https://api.github.com/repos/ansible/ansible-modules-core","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4869/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4869/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4869/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/4869","id":177213356,"number":4869,"title":"eos_eapi: TypeError: load_config() got an unexpected keyword argument 'session'\\n\"","user":{"login":"gundalow","id":940557,"avatar_url":"https://avatars.githubusercontent.com/u/940557?v=3","gravatar_id":"","url":"https://api.github.com/users/gundalow","html_url":"https://github.com/gundalow","followers_url":"https://api.github.com/users/gundalow/followers","following_url":"https://api.github.com/users/gundalow/following{/other_user}","gists_url":"https://api.github.com/users/gundalow/gists{/gist_id}","starred_url":"https://api.github.com/users/gundalow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gundalow/subscriptions","organizations_url":"https://api.github.com/users/gundalow/orgs","repos_url":"https://api.github.com/users/gundalow/repos","events_url":"https://api.github.com/users/gundalow/events{/privacy}","received_events_url":"https://api.github.com/users/gundalow/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/affects_2.2","name":"affects_2.2","color":"5319e7"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/networking","name":"networking","color":"c7def8"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/P1","name":"P1","color":"f7c6c7"}],"state":"open","locked":false,"assignee":{"login":"privateip","id":414626,"avatar_url":"https://avatars.githubusercontent.com/u/414626?v=3","gravatar_id":"","url":"https://api.github.com/users/privateip","html_url":"https://github.com/privateip","followers_url":"https://api.github.com/users/privateip/followers","following_url":"https://api.github.com/users/privateip/following{/other_user}","gists_url":"https://api.github.com/users/privateip/gists{/gist_id}","starred_url":"https://api.github.com/users/privateip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/privateip/subscriptions","organizations_url":"https://api.github.com/users/privateip/orgs","repos_url":"https://api.github.com/users/privateip/repos","events_url":"https://api.github.com/users/privateip/events{/privacy}","received_events_url":"https://api.github.com/users/privateip/received_events","type":"User","site_admin":false},"assignees":[{"login":"privateip","id":414626,"avatar_url":"https://avatars.githubusercontent.com/u/414626?v=3","gravatar_id":"","url":"https://api.github.com/users/privateip","html_url":"https://github.com/privateip","followers_url":"https://api.github.com/users/privateip/followers","following_url":"https://api.github.com/users/privateip/following{/other_user}","gists_url":"https://api.github.com/users/privateip/gists{/gist_id}","starred_url":"https://api.github.com/users/privateip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/privateip/subscriptions","organizations_url":"https://api.github.com/users/privateip/orgs","repos_url":"https://api.github.com/users/privateip/repos","events_url":"https://api.github.com/users/privateip/events{/privacy}","received_events_url":"https://api.github.com/users/privateip/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/milestones/4","html_url":"https://github.com/ansible/ansible-modules-core/milestones/2.2.0","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/milestones/4/labels","id":1756290,"number":4,"title":"2.2.0","description":"","creator":{"login":"alikins","id":15162,"avatar_url":"https://avatars.githubusercontent.com/u/15162?v=3","gravatar_id":"","url":"https://api.github.com/users/alikins","html_url":"https://github.com/alikins","followers_url":"https://api.github.com/users/alikins/followers","following_url":"https://api.github.com/users/alikins/following{/other_user}","gists_url":"https://api.github.com/users/alikins/gists{/gist_id}","starred_url":"https://api.github.com/users/alikins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alikins/subscriptions","organizations_url":"https://api.github.com/users/alikins/orgs","repos_url":"https://api.github.com/users/alikins/repos","events_url":"https://api.github.com/users/alikins/events{/privacy}","received_events_url":"https://api.github.com/users/alikins/received_events","type":"User","site_admin":false},"open_issues":61,"closed_issues":69,"state":"open","created_at":"2016-05-09T19:02:33Z","updated_at":"2016-09-15T15:44:43Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-09-15T15:44:43Z","updated_at":"2016-09-15T15:44:43Z","closed_at":null,"body":"##### ISSUE TYPE\r\n - Bug Report\r\n\r\n##### COMPONENT NAME\r\neos_eapi\r\n\r\n##### ANSIBLE VERSION\r\n```\r\nansible 2.2.0 (devel 70e63ddf6c) last updated 2016/09/15 10:17:19 (GMT +100)\r\n  lib/ansible/modules/core: (devel 683e5e4d1a) last updated 2016/09/15 10:17:22 (GMT +100)\r\n  lib/ansible/modules/extras: (devel 170adf16bd) last updated 2016/09/15 10:17:23 (GMT +100)\r\n\r\n```\r\n\r\n##### CONFIGURATION\r\n\r\n##### OS / ENVIRONMENT\r\n\r\n##### SUMMARY\r\n\r\n\r\nI believe the fix is\r\n```\r\ndiff --git a/network/eos/eos_eapi.py b/network/eos/eos_eapi.py\r\nindex 7edbe3f..c09cddb 100644\r\n--- a/network/eos/eos_eapi.py\r\n+++ b/network/eos/eos_eapi.py\r\n@@ -190,8 +190,10 @@ urls:\r\n import re\r\n import time\r\n \r\n+import ansible.module_utils.eos\r\n+\r\n+from ansible.module_utils.network import NetworkModule, NetworkError\r\n from ansible.module_utils.netcfg import NetworkConfig, dumps\r\n-from ansible.module_utils.eos import NetworkModule, NetworkError\r\n from ansible.module_utils.basic import get_exception\r\n \r\n PRIVATE_KEYS_RE = re.compile('__.+__')\r\n@@ -273,7 +275,7 @@ def load_config(module, commands, result):\r\n     session = 'ansible_%s' % int(time.time())\r\n     commit = not module.check_mode\r\n \r\n-    diff = module.config.load_config(commands, session=session, commit=commit)\r\n+    diff = module.config.load_config(commands, commit=commit)\r\n \r\n     # once the configuration is done, remove the config session and\r\n     # remove the session name from the result\r\n```\r\nBased on https://github.com/ansible/ansible-modules-core/pull/4804/files\r\n\r\nHowever there may be other things that need changing\r\n\r\n##### STEPS TO REPRODUCE\r\n```\r\n\r\n```\r\n\r\n\r\n##### EXPECTED RESULTS\r\n\r\n##### ACTUAL RESULTS\r\n"}}
{"actor":{"display_login":"gundalow"}}