Merge "rhel-common element should not use attach with activation key"
This commit is contained in:
commit
8efa1fe154
@ -116,7 +116,7 @@ case "${REG_METHOD:-}" in
|
||||
portal)
|
||||
echo "Registering with options: $sanitized_opts"
|
||||
subscription-manager register $opts
|
||||
if [ -z "${REG_AUTO_ATTACH:-}" ]; then
|
||||
if [ -z "${REG_AUTO_ATTACH:-}" -a -z "${REG_ACTIVATION_KEY:-}" ]; then
|
||||
echo "Attaching with options: $attach_opts"
|
||||
subscription-manager attach $attach_opts
|
||||
fi
|
||||
|
@ -93,7 +93,7 @@ case "${REG_METHOD:-}" in
|
||||
portal)
|
||||
echo "Registering with options: $sanitized_opts"
|
||||
subscription-manager register $opts
|
||||
if [ -z "${REG_AUTO_ATTACH:-}" ]; then
|
||||
if [ -z "${REG_AUTO_ATTACH:-}" -a -z "${REG_ACTIVATION_KEY:-}" ]; then
|
||||
echo "Attaching with options: $attach_opts"
|
||||
subscription-manager attach $attach_opts
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user