diff --git a/CHANGES/801.bugfix b/CHANGES/801.bugfix new file mode 100644 index 000000000..0de0822a8 --- /dev/null +++ b/CHANGES/801.bugfix @@ -0,0 +1 @@ +Use proxy auth credentials of a Remote when syncing content diff --git a/pulp_ansible/app/downloaders.py b/pulp_ansible/app/downloaders.py index 13e5c2285..895f7fe6a 100644 --- a/pulp_ansible/app/downloaders.py +++ b/pulp_ansible/app/downloaders.py @@ -216,6 +216,10 @@ class to be instantiated. options = {"session": self._session} if self._remote.proxy_url: options["proxy"] = self._remote.proxy_url + if self._remote.proxy_username and self._remote.proxy_password: + options["proxy_auth"] = BasicAuth( + login=self._remote.proxy_username, password=self._remote.proxy_password + ) if not self._remote.token and self._remote.username and self._remote.password: options["auth"] = BasicAuth(login=self._remote.username, password=self._remote.password)