Skip to content

Commit 4841826

Browse files
Merge pull request #107 from puppetlabs/bugfix_fix_needs_restarting_changes
Fixed issues on SLES where needs restarting is more verbose
2 parents 915fc7f + 98105db commit 4841826

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/pe_patch_fact_generation.sh.epp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ then
132132
else
133133
echo "false" > $DATADIR/reboot_required
134134
fi
135-
/usr/bin/needs-restarting 2>/dev/null | grep -v '^Updating Subscription' | sed 's/[[:space:]]*$//' >$DATADIR/apps_to_restart
135+
/usr/bin/needs-restarting 2>/dev/null | grep -Ev "^$|^Updating Subscription|No processes|No core lib|not necessary" | sed 's/[[:space:]]*$//' >$DATADIR/apps_to_restart
136136
;;
137137
esac
138138
else

0 commit comments

Comments
 (0)