Fix polling down retry (and other items) (#15483)

* Only update last_polled if polled
Because availability now runs always, we need to check if we ran any other modules successfully, if so, we can update last_polled

* Tally results and act accordingly

* Apply fixes from StyleCI

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
This commit is contained in:
Tony Murray
2023-10-19 06:55:41 -05:00
committed by GitHub
parent 27ef398907
commit 8f91fb3877
5 changed files with 123 additions and 35 deletions

View File

@@ -120,6 +120,7 @@ return [
'db_connect' => 'Failed to connect to database. Verify database service is running and connection settings.',
'db_auth' => 'Failed to connect to database. Verify credentials: :error',
'no_devices' => 'No devices found matching your given device specification.',
'none_up' => 'Device was down, unable to poll.|All devices were down, unable to poll.',
'none_polled' => 'No devices were polled.',
],
'polled' => 'Polled :count devices in :time',