The '-b' or '--background' option runs commands without waiting for any tasks generated by the commands to complete. Some of the async ansible commands show the results of the tasks expecting them to be finished. Using the '-b' option skips the waiting causing them to error or show an incorrect result. The commands currently affected are:
- distribution create & update
- remote update
- repository update
Solution:
Use the passed pulp_context to check if the '-b' option is set and then appropriately show the results of the task or not.
The '-b' or '--background' option runs commands without waiting for any tasks generated by the commands to complete. Some of the async ansible commands show the results of the tasks expecting them to be finished. Using the '-b' option skips the waiting causing them to error or show an incorrect result. The commands currently affected are:
Solution:
Use the passed pulp_context to check if the '-b' option is set and then appropriately show the results of the task or not.