X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2Fhoneycomb%2FNotifications.py;h=38f1fd3093804fb305f7c38d074cffa812744676;hb=9fdc420129db69d20c8f603c15205f2aaf375d66;hp=58d835eca0e2b600bbd52437050a83b90e7ca12e;hpb=4c6fe5602edcbd9857a846e5b13a21d5c671a2c8;p=csit.git diff --git a/resources/libraries/python/honeycomb/Notifications.py b/resources/libraries/python/honeycomb/Notifications.py index 58d835eca0..38f1fd3093 100644 --- a/resources/libraries/python/honeycomb/Notifications.py +++ b/resources/libraries/python/honeycomb/Notifications.py @@ -1,4 +1,4 @@ -# Copyright (c) 2018 Cisco and/or its affiliates. +# Copyright (c) 2019 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -27,14 +27,12 @@ class Notifications(Netconf): - read received notifications """ - def add_notification_listener(self, subscription, time_out=10): + def add_notification_listener(self, subscription): """Open a new channel on the SSH session, connect to Netconf subsystem and subscribe to receive Honeycomb notifications. :param subscription: RPC for subscription to notifications. - :param time_out: Timeout value for each read operation in seconds. :type subscription: str - :type time_out: int :raises HoneycombError: If subscription to notifications fails. """ @@ -42,7 +40,6 @@ class Notifications(Netconf): self.send(subscription) reply = self.get_response( - time_out=time_out, err="Timeout on notifications subscription." ) @@ -65,7 +62,6 @@ class Notifications(Netconf): .format(time_out)) reply = self.get_response( - time_out=time_out, err="Timeout on getting notification." )