summaryrefslogtreecommitdiff
path: root/lib/ansible/module_utils
diff options
context:
space:
mode:
authorTrishna Guha <trishnaguha17@gmail.com>2017-08-03 11:39:53 +0530
committerGitHub <noreply@github.com>2017-08-03 11:39:53 +0530
commit3d446b2fab93021932f497a8be9b4945d4bccf0d (patch)
tree435a1d8cea09bcd3e85e360f76c4dfed38d1f302 /lib/ansible/module_utils
parent987ad8993ce33e2aa5962ca8cc821ebddd866d78 (diff)
downloadansible-3d446b2fab93021932f497a8be9b4945d4bccf0d.tar.gz
fix NameError eos_config (#27684)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
Diffstat (limited to 'lib/ansible/module_utils')
-rw-r--r--lib/ansible/module_utils/eos.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ansible/module_utils/eos.py b/lib/ansible/module_utils/eos.py
index 75d21cda85..1d38c08a03 100644
--- a/lib/ansible/module_utils/eos.py
+++ b/lib/ansible/module_utils/eos.py
@@ -222,7 +222,7 @@ class Cli:
pass
if not all((bool(use_session), self.supports_sessions)):
- return configure(self, commands)
+ return self.configure(self, commands)
conn = get_connection(self)
session = 'ansible_%s' % int(time.time())
@@ -395,7 +395,7 @@ class Eapi:
there will be no returned diff or session values
"""
if not self.supports_sessions:
- return configure(self, commands)
+ return self.configure(self, commands)
session = 'ansible_%s' % int(time.time())
result = {'session': session}