Update documentation for "Updating Linux" runbook example to include additional successful exit codes
A code sample at the following URL is incorrect:
The script under step 7 of "Create the Runbook" section (CentOS/RHEL) should be updated to reflect the existence of additional yum exit codes which indicate successful execution. Currently, this script does not account for exit code 100. From 'man yum':
"DNF exit code will be 100 when there are updates available and a list of the updates will be printed, 0 if not and 1 if an error occurs."
This can be corrected by introducing a compound conditional as follows:
if [[ $? -ne 0 && $? -ne 100 ]]
Thanks for raising this, we've updated the documentation for CentOS/RHEL as per your suggestion!