Make RHEL subscriptions optional
The code to handle RHEL subscriptions was buggy and broke if no subscription was supplied. Change-Id: Ie4f30171f716312b69d760d45f25659606dadc1f
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
set -e
|
||||
|
||||
if [ -n $DIB_RHSM_USER ] && [ -n $DIB_RHSM_PASSWORD ]
|
||||
if [ -n "$DIB_RHSM_USER" ] && [ -n "$DIB_RHSM_PASSWORD" ]
|
||||
then
|
||||
subscription-manager register --user $DIB_RHSM_USER --password $DIB_RHSM_PASSWORD
|
||||
# wait a second to ensure consumer certificate is finished writing to disk
|
||||
|
||||
Reference in New Issue
Block a user