We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dc38ff commit c532820Copy full SHA for c532820
1 file changed
files/os_patching_fact_generation.sh
@@ -46,7 +46,7 @@ case $OSFAMILY in
46
PKGS=$(echo $PKGS | sed 's/Obsoleting.*//')
47
SECPKGS=$(yum -q --security check-update 2>/dev/null| grep -E -v "^Security:" | grep -oP '^.*?(?= )')
48
SECPKGS=$(echo $SECPKGS | sed 's/Obsoleting.*//')
49
- HELDPKGS=$([ -r /etc/yum/pluginconf.d/versionlock.list ] && awk -F':' '/:/ {print $2}' /etc/yum/pluginconf.d/versionlock.list | sed 's/-[0-9].*//')
+ HELDPKGS=$([ -r /etc/yum/pluginconf.d/versionlock.list ] && awk -F':' '/:/ {print $1}' /etc/yum/pluginconf.d/versionlock.list | sed 's/-[0-9].*//')
50
;;
51
Suse)
52
PKGS=$(zypper --non-interactive --no-abbrev --quiet lu | grep '|' | grep -v '\sRepository' | awk -F'|' '/^[[:alnum:]]/ {print $3}' | sed 's/^\s*\|\s*$//')
0 commit comments