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:
Matthew Farrellee 2013-10-07 14:44:31 -04:00
parent 21a81d8b79
commit ddef437cd2

View file

@ -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