yum --downloadonly exiting because --downloadonly specified

Latest response

RedHat 5.8

I am trying to get the latest updates.
I have in my script a command (these commands worked back in Nov .)
yum update --downloadonly -y
or
yum install --downloadonly rhino

I get the error:
"exiting because --downloadonly specified"

I did try the link https://access.redhat.com/discussions/1571653

-System background--
I re-registered and existing box XYZ with subscription-manager.

Under System Management -> System
XYZ shows up, has a subscription attached and states the system is properly subscribed thur 2018-05-31
System is Virtual.

When I run Yum i get the following errors (not sure this error is a problem or not)
Error Class code 31:
Error Class Info: This system does not have a valid entitlement for Red Hat Network .

Most of the links I have found while researching send me to RHN classic management but the system is not listed there its under the Subscriber Inventory for Subscription management.

Yum connects and can find packages etc.

When i run with --downloadonly
I get the error
exiting because --downloadonly specified

yum lists downloadonly as a loaded plugin

Responses