From a8daff1590d95c1ced745bac931936f6babf8d09 Mon Sep 17 00:00:00 2001 From: Peter Sprygada Date: Sun, 11 Sep 2016 23:32:05 -0400 Subject: [PATCH] clean up iosxr shared module fixes up method signatures in iosxr shared module removing unneeded **kwargs --- lib/ansible/module_utils/iosxr.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/ansible/module_utils/iosxr.py b/lib/ansible/module_utils/iosxr.py index 076c9233652..bd9866c22bb 100644 --- a/lib/ansible/module_utils/iosxr.py +++ b/lib/ansible/module_utils/iosxr.py @@ -59,7 +59,7 @@ class Cli(CliBase): ### Config methods ### - def configure(self, commands, **kwargs): + def configure(self, commands): cmds = ['configure terminal'] if commands[-1] == 'end': commands.pop() @@ -68,7 +68,7 @@ class Cli(CliBase): responses = self.execute(cmds) return responses[1:] - def get_config(self, flags=None, **kwargs): + def get_config(self, flags=None): cmd = 'show running-config' if flags: if isinstance(flags, list): @@ -106,6 +106,7 @@ class Cli(CliBase): self.execute(['abort']) diff = None raise + return diff[0] Cli = register_transport('cli', default=True)(Cli)