Skip to content

Commit

Permalink
New API endpoint to refresh all ACSs
Browse files Browse the repository at this point in the history
  • Loading branch information
damoore044 committed Jan 31, 2024
1 parent 3605d7b commit e5f66db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nailgun/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,14 +522,14 @@ def path(self, which=None):
refresh
/katello/api/alternate_content_sources/:id/refresh
bulk_refresh
/katello/api/alternate_content_sources/bulk/refresh
/katello/api/alternate_content_sources/bulk/refresh_all
bulk_destroy
/katello/api/alternate_content_sources/bulk/destroy
"""
if which == "refresh":
return f'{super().path(which="self")}/{which}'
elif which in (
'bulk/refresh',
'bulk/refresh_all',
'bulk/destroy',
):
return f'{super().path(which="base")}/{which}'
Expand Down Expand Up @@ -569,7 +569,7 @@ def bulk_refresh(self, synchronous=True, timeout=None, **kwargs):
"""
kwargs = kwargs.copy() # shadow the passed-in kwargs
kwargs.update(self._server_config.get_client_kwargs())
response = client.post(self.path('bulk/refresh'), **kwargs)
response = client.post(self.path('bulk/refresh_all'), **kwargs)
return _handle_response(response, self._server_config, synchronous, timeout)

def bulk_destroy(self, synchronous=True, timeout=None, **kwargs):
Expand Down

0 comments on commit e5f66db

Please sign in to comment.