Use --disable= in subscription-manager to avoid shell expansion.
authorVincent S. Cojot <vincent@cojot.name>
Thu, 23 Feb 2017 14:38:24 +0000 (09:38 -0500)
committerVincent S. Cojot <vincent@cojot.name>
Wed, 1 Mar 2017 16:11:52 +0000 (11:11 -0500)
commitd76ef528137aa55b96c4e2914c0c0284d979dac0
tree560a184004f2ca6567b0786d6cb4e55ef45724bb
parent1ab18342023458c58e6771b94c22ede89c917af3
Use --disable= in subscription-manager to avoid shell expansion.

In extraconfig/pre_deploy/rhel-registration/scripts/rhel-registration,
there's a line that says:

   retry subscription-manager repos --disable '*'

I believe this is broken and will result in shell expansion being made.
The proper line should be:

   retry subscription-manager repos --disable='*'

This regression came from commit 2b06ed8adce2bcc18480b71c0f20a0ec2d21de19.
(Also see https://review.openstack.org/#/c/381233 )

This patch fixes the regression while preserving functionality
of the above change.

Closes-Bug: 1667316

Change-Id: I54f0db3f1f596f6356f7445cdc61737f20f14318
Signed-off-by: Vincent S. Cojot <vincent@cojot.name>
(cherry picked from commit 87569bd5711eaf79c1a3f0a4449daef860626daa)
extraconfig/pre_deploy/rhel-registration/scripts/rhel-registration