Update from napalm PR (#45743)

This commit is contained in:
Nathaniel Case 2018-09-17 15:39:07 -04:00 committed by GitHub
parent fa18d45eb3
commit 52c20bbd3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -360,8 +360,10 @@ class NetworkConnectionBase(ConnectionBase):
initialize implementation plugin options initialize implementation plugin options
''' '''
for plugin in self._implementation_plugins: for plugin in self._implementation_plugins:
if hasattr(plugin, 'set_options'): try:
plugin.set_options(task_keys=task_keys, var_options=var_options, direct=direct) plugin.set_options(task_keys=task_keys, var_options=var_options, direct=direct)
except AttributeError:
pass
def _update_connection_state(self): def _update_connection_state(self):
''' '''