Skip to content

Commit c5d9afc

Browse files
committed
Merge remote-tracking branch 'origin/master' into release/v1.7.0
2 parents 1e823f6 + d1469bc commit c5d9afc

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ All notable changes to this project will be documented in this file.
1111

1212
Contributed by Vadym Chepkov (@vchepkov)
1313

14+
* Fixing issue where the update history was not being reported
15+
back on RHEL8 systems.
16+
17+
Contributed by Bradley Bishop (@bishopbm1)
18+
1419
## Release 1.6.0 (2021-07-08)
1520

1621
* Added support for Oracle Linux.

files/bash/update_rh.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ else
101101
# Installed <package> <repo>
102102
# example:
103103
# Installed rpm-4.11.3-35.el7.x86_64 @base
104-
LAST_INSTALL=$(echo "$YUM_HISTORY" | grep "Installed\|Dep-Install")
104+
# example RHEL 8:
105+
# Install rpm-4.11.3-35.el7.x86_64 @base
106+
LAST_INSTALL=$(echo "$YUM_HISTORY" | grep "Install\|Installed\|Dep-Install")
105107
tee -a "${RESULT_FILE}" <<EOF
106108
{
107109
"installed": [
@@ -145,7 +147,10 @@ EOF
145147
# Example:
146148
# Updated puppet-bolt-1.25.0-1.el7.x86_64 @puppet6
147149
# Update 1.26.0-1.el7.x86_64 @puppet6
148-
LAST_UPGRADE=$(echo "$YUM_HISTORY" | grep "Updated \| Update ")
150+
# Example RHEL 8:
151+
# Upgrade st2-3.6.0-3.x86_64 @StackStorm_stable
152+
# Upgraded st2-3.5.0-1.x86_64 @@System
153+
LAST_UPGRADE=$(echo "$YUM_HISTORY" | grep "Upgraded \| Upgrade \| Updated \| Update ")
149154
tee -a "${RESULT_FILE}" <<EOF
150155
"upgraded": [
151156
EOF

0 commit comments

Comments
 (0)