RHEL registration shouldn't use attach with activation key
In the case of using portal registration with an activation key, the RHEL registration script is still executing a `subscription-manager attach` command. This should not happen if an activation key is provided. This is because an activation key already provides the subscriptions to attach. Change-Id: I2907bede28a9b7bef71cedeea69c876eb4949df0
This commit is contained in:
@@ -94,7 +94,7 @@ fi
|
|||||||
case "${REG_METHOD:-}" in
|
case "${REG_METHOD:-}" in
|
||||||
portal)
|
portal)
|
||||||
subscription-manager register $opts
|
subscription-manager register $opts
|
||||||
if [ -z "${REG_AUTO_ATTACH:-}" ]; then
|
if [ -z "${REG_AUTO_ATTACH:-}" -a -z "${REG_ACTIVATION_KEY:-}" ]; then
|
||||||
subscription-manager attach $attach_opts
|
subscription-manager attach $attach_opts
|
||||||
fi
|
fi
|
||||||
subscription-manager $repos
|
subscription-manager $repos
|
||||||
|
Reference in New Issue
Block a user