RedHatSatellite / katello-attach-subscription

automatically assign subscriptions to hypervisors based on certain rules
GNU General Public License v2.0
10 stars 5 forks source link

Improved api function #57

Open mossicrue opened 5 years ago

mossicrue commented 5 years ago

Add a function called apicall that improve the behaviour of the API in case of errors and exceptions. All the API errors are now reported in Standard Error output in a more verbose way. Added the --repeat-api options that will retry an api call a certain number of time if it returns error. Added the --repeat-api-sleep that add the possibility to increase the time waited before perform the same api call if the previous attempt failed.