Skip to content

Using -b with async ansible commands errors or gives incorrect results #85

@gerrod3

Description

@gerrod3

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working (template-set)

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions