File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
pulp-glue/pulp_glue/common Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 1+ Added a preference to return the result of a task in case on is given over guessing what happened.
Original file line number Diff line number Diff line change @@ -469,7 +469,10 @@ def call(
469469 )
470470 if not non_blocking :
471471 result = self .wait_for_task (result )
472- if isinstance (result , dict ) and ["task_group" ] == list (result .keys ()):
472+ if self .has_plugin (PluginRequirement ("core" , specifier = ">=3.86" )):
473+ if result ["result" ] is not None :
474+ result = result ["result" ]
475+ elif isinstance (result , dict ) and ["task_group" ] == list (result .keys ()):
473476 task_group_href = result ["task_group" ]
474477 result = self .api .call (
475478 "task_groups_read" , parameters = {"task_group_href" : task_group_href }
You can’t perform that action at this time.
0 commit comments