File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -32,17 +32,17 @@ upgrades=$(check_upgrades)
3232
3333echo ' # HELP yum_upgrades_pending Yum package pending updates by origin.'
3434echo ' # TYPE yum_upgrades_pending gauge'
35- if [[ -n " ${upgrades} " ]] ; then
35+ if [[ -n " ${upgrades} " ]]; then
3636 echo " ${upgrades} "
3737else
3838 echo ' yum_upgrades_pending{origin=""} 0'
3939fi
4040
4141# If yum-utils/dnf-utils is not installed then we skip rendering this metric
42- if [[ -x /bin/needs-restarting ]] ; then
42+ if [[ -x /bin/needs-restarting ]]; then
4343 echo ' # HELP node_reboot_required Node reboot is required for software updates.'
4444 echo ' # TYPE node_reboot_required gauge'
45- if /bin/needs-restarting -r > /dev/null 2>&1 ; then
45+ if /bin/needs-restarting -r > /dev/null 2>&1 ; then
4646 echo ' node_reboot_required 0'
4747 else
4848 echo ' node_reboot_required 1'
You can’t perform that action at this time.
0 commit comments