Skip to content

Commit

Permalink
Hide message in stdout if SCCcredentials is missing (bsc#1222277) (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbussolotto authored Apr 17, 2024
1 parent 67e59e9 commit 9b102b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mgradm/shared/utils/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ var inspectValues = []types.InspectData{
types.NewInspectData("image_pg_version", "rpm -qa --qf '%{VERSION}\\n' 'name=postgresql[0-8][0-9]-server' | cut -d. -f1 | sort -n | tail -1 || true"),
types.NewInspectData("current_pg_version", "(test -e /var/lib/pgsql/data/PG_VERSION && cat /var/lib/pgsql/data/PG_VERSION) || true"),
types.NewInspectData("registration_info", "transactional-update --quiet register --status 2>/dev/null || true"),
types.NewInspectData("scc_username", "cat /etc/zypp/credentials.d/SCCcredentials | grep username | cut -d= -f2 || true"),
types.NewInspectData("scc_password", "cat /etc/zypp/credentials.d/SCCcredentials | grep password | cut -d= -f2 || true"),
types.NewInspectData("scc_username", "(test -e /etc/zypp/credentials.d/SCCcredentials && cat /etc/zypp/credentials.d/SCCcredentials | grep username | cut -d= -f2) || true"),
types.NewInspectData("scc_password", "(test -e /etc/zypp/credentials.d/SCCcredentials && cat /etc/zypp/credentials.d/SCCcredentials | grep password | cut -d= -f2) || true"),
}

// InspectOutputFile represents the directory and the basename where the inspect values are stored.
Expand Down
1 change: 1 addition & 0 deletions uyuni-tools.changes.mbussolotto.hide_scc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Hide message in stdout if SCCcredentials is missing (bsc#1222277)

0 comments on commit 9b102b6

Please sign in to comment.