mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-16 09:55:26 -07:00
Fix misuse of 'self' in lib/ansible/module_utils/network/eos/eos.py. … (#39074)
* Fix misuse of 'self' in lib/ansible/module_utils/network/eos/eos.py. Method load_config * Fix all instances of self.config(self,...
This commit is contained in:
parent
4f36d7965e
commit
80d7e22f5e
1 changed files with 2 additions and 2 deletions
|
@ -232,7 +232,7 @@ class Cli:
|
||||||
|
|
||||||
if not all((bool(use_session), self.supports_sessions)):
|
if not all((bool(use_session), self.supports_sessions)):
|
||||||
if commit:
|
if commit:
|
||||||
return self.configure(self, commands)
|
return self.configure(commands)
|
||||||
else:
|
else:
|
||||||
self._module.warn("EOS can not check config without config session")
|
self._module.warn("EOS can not check config without config session")
|
||||||
result = {'changed': True}
|
result = {'changed': True}
|
||||||
|
@ -420,7 +420,7 @@ class Eapi:
|
||||||
|
|
||||||
if not all((bool(use_session), self.supports_sessions)):
|
if not all((bool(use_session), self.supports_sessions)):
|
||||||
if commit:
|
if commit:
|
||||||
return self.configure(self, config)
|
return self.configure(config)
|
||||||
else:
|
else:
|
||||||
self._module.warn("EOS can not check config without config session")
|
self._module.warn("EOS can not check config without config session")
|
||||||
result = {'changed': True}
|
result = {'changed': True}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue