Skip to content

Commit

Permalink
Handle the new task group response for import
Browse files Browse the repository at this point in the history
[noissue]

Required PR: pulp/pulpcore#1631
  • Loading branch information
David Davis committed Sep 17, 2021
1 parent b5e682d commit a01c695
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pulp_ansible/tests/functional/api/test_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,8 @@ def _perform_import(self, importer, chunked=False):
f for f in list(self.export.output_file_info.keys()) if f.endswith("tar.gz")
]
import_response = self.imports_api.create(importer.pulp_href, {"path": filenames[0]})
monitor_task(import_response.task)
task = self.api_client.get(import_response.task)
resources = task["created_resources"]
task_group_href = resources[1]
task_group = monitor_task_group(task_group_href)

task_group = monitor_task_group(import_response["task_group"])
return task_group


Expand Down

0 comments on commit a01c695

Please sign in to comment.