Skip to content

Commit

Permalink
remove explicit rpc method and revert to getattr path
Browse files Browse the repository at this point in the history
  • Loading branch information
Einar Nilsen-Nygaard authored and Einar Nilsen-Nygaard committed May 29, 2021
1 parent 32b3565 commit 7bbe2c4
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions ncclient/manager.py
Expand Up @@ -47,6 +47,7 @@
"kill_session": operations.KillSession,
"poweroff_machine": operations.PoweroffMachine,
"reboot_machine": operations.RebootMachine,
"rpc": operations.GenericRPC,
}

"""
Expand Down Expand Up @@ -289,14 +290,6 @@ def _missing(*args, **kwargs):
return r
return _missing

def rpc(self, *args, **kwds):
return operations.GenericRPC(self._session,
self._device_handler,
async_mode=self._async_mode,
timeout=self._timeout,
raise_mode=self._raise_mode,
huge_tree=self._huge_tree).request(*args, **kwds)

def take_notification(self, block=True, timeout=None):
"""Attempt to retrieve one notification from the queue of received
notifications.
Expand Down

0 comments on commit 7bbe2c4

Please sign in to comment.