generated from pavel.muhortov/template-python
added "nothing to do" log message
This commit is contained in:
parent
03b69239c6
commit
b724aa9441
|
@ -346,6 +346,7 @@ if __name__ == "__main__":
|
||||||
)
|
)
|
||||||
for address in args['check']:
|
for address in args['check']:
|
||||||
if Do.ping(host=address):
|
if Do.ping(host=address):
|
||||||
|
logging.info(msg='target hosts are available. Nothing to do.')
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
iface_states = {'old': {}, 'new': {}}
|
iface_states = {'old': {}, 'new': {}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user