Make RHEL subscription optional
The code to handle unregister of RHEL subscriptions was buggy and broke if no subscription credentials were supplied. Change-Id: Iac29c45f207725e31eac6487a87367fcd3d34d49
This commit is contained in:
parent
21a81d8b79
commit
ddef437cd2
@ -2,6 +2,6 @@
|
||||
|
||||
set -e
|
||||
|
||||
if [ -n $DIB_RHSM_USER ] && [ -n $DIB_RHSM_PASSWORD ]; then
|
||||
if [ -n "$DIB_RHSM_USER" ] && [ -n "$DIB_RHSM_PASSWORD" ]; then
|
||||
subscription-manager unregister
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user