Skip to content

Commit

Permalink
Update sync for Pulp 3 to use smart_handler
Browse files Browse the repository at this point in the history
Sync was returning a task. Update the reponse_handler to parse the
retuned task. This will make the sync a bit more robust.
  • Loading branch information
koliveir authored and rochacbruno committed May 13, 2019
1 parent 6fe5c28 commit e385e66
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pulp_smash/pulp3/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ def sync(cfg, remote, repo, **kwargs):
to be synced.
:param repo: A dict of information about the repository.
:param kwargs: Keyword arguments to be merged in to the request data.
:returns: The server's response. Call ``.json()`` on the response to get
a call report.
:returns: The server's response. A dict of information about the just
created sync.
"""
client = api.Client(cfg, api.json_handler)
client = api.Client(cfg)
data = {"repository": repo["_href"]}
data.update(kwargs)
return client.post(urljoin(remote["_href"], "sync/"), data)
Expand Down

0 comments on commit e385e66

Please sign in to comment.