From 80d7e22f5e34574e4383cea2baef00098d0ebdf7 Mon Sep 17 00:00:00 2001 From: Eitan Akman Date: Mon, 23 Apr 2018 06:10:34 -0400 Subject: [PATCH] =?UTF-8?q?Fix=20misuse=20of=20'self'=20in=20lib/ansible/m?= =?UTF-8?q?odule=5Futils/network/eos/eos.py.=20=E2=80=A6=20(#39074)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix misuse of 'self' in lib/ansible/module_utils/network/eos/eos.py. Method load_config * Fix all instances of self.config(self,... --- lib/ansible/module_utils/network/eos/eos.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/module_utils/network/eos/eos.py b/lib/ansible/module_utils/network/eos/eos.py index d254ea71d7..22bf86f6ee 100644 --- a/lib/ansible/module_utils/network/eos/eos.py +++ b/lib/ansible/module_utils/network/eos/eos.py @@ -232,7 +232,7 @@ class Cli: if not all((bool(use_session), self.supports_sessions)): if commit: - return self.configure(self, commands) + return self.configure(commands) else: self._module.warn("EOS can not check config without config session") result = {'changed': True} @@ -420,7 +420,7 @@ class Eapi: if not all((bool(use_session), self.supports_sessions)): if commit: - return self.configure(self, config) + return self.configure(config) else: self._module.warn("EOS can not check config without config session") result = {'changed': True}