From b724aa9441ab6667fe1697a119c49d7a11c81fb3 Mon Sep 17 00:00:00 2001 From: Pavel Muhortov Date: Thu, 23 Nov 2023 12:42:44 +0300 Subject: [PATCH] added "nothing to do" log message --- cisco-port-failover.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cisco-port-failover.py b/cisco-port-failover.py index 292fe65..7d8aeb6 100644 --- a/cisco-port-failover.py +++ b/cisco-port-failover.py @@ -346,6 +346,7 @@ if __name__ == "__main__": ) for address in args['check']: if Do.ping(host=address): + logging.info(msg='target hosts are available. Nothing to do.') break else: iface_states = {'old': {}, 'new': {}}