Skip to content

Commit d1469bc

Browse files
authored
Merge pull request #88 from EncoreTechnologies/hotfix/patching-history
Update History
2 parents 815c690 + a4db0e1 commit d1469bc

3 files changed

Lines changed: 13 additions & 3 deletions

File tree

CHANGELOG.md

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

88
Contributed by Vadym Chepkov (@vchepkov)
99

10+
* Fixing issue where the update history was not being reported
11+
back on RHEL8 systems.
12+
13+
Contributed by Bradley Bishop (@bishopbm1)
14+
1015
## Release 1.6.0 (2021-07-08)
1116

1217
* 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

metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "encore-patching",
3-
"version": "1.6.0",
3+
"version": "1.7.0",
44
"author": "Encore Technologies",
55
"summary": "Implements OS patching workflows using Bolt tasks and plans.",
66
"license": "Apache-2.0",

0 commit comments

Comments
 (0)