Fixes multiple issues with retry function in rhel-registration.
authorVincent S. Cojot <vincent@cojot.name>
Mon, 13 Mar 2017 18:39:16 +0000 (14:39 -0400)
committerVincent S. Cojot <vincent@cojot.name>
Tue, 14 Mar 2017 13:50:24 +0000 (09:50 -0400)
commit038eae089130bc3a814897c0e282223de16f4658
treef7dae7a74b3e9ed41c36f6eadd3623f435caa48e
parenta681b985643f62de447039f25944e7c2d2347d28
Fixes multiple issues with retry function in rhel-registration.

There were multiple issues in retry() in rhel-registration:
 - There was no need for it to be recursive (local variables
   got overwritten)
 - There was no delay between multiple attempts, leading to faster but
   more frequent failures.
 - The max number of attempts was set too low for some environements.

With this patch, rhel-registration now works more reliably with slow-links
for portal registration and does not attempt to DDos the portal or your
satellite server.

Change-Id: I594d3c94867b45a7a58766dbcc66edead78d6a4e
extraconfig/pre_deploy/rhel-registration/scripts/rhel-registration