Skip to content

Commit

Permalink
Update documentation for one API call in connection.py
Browse files Browse the repository at this point in the history
  • Loading branch information
m-horky committed Jan 25, 2024
1 parent df7c3f4 commit feea253
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/rhsm/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -1442,11 +1442,12 @@ def get_supported_resources(self) -> dict:

return self.resources

def supports_resource(self, resource_name: str) -> bool:
"""
Check if the server we're connecting too supports a particular
resource. For our use cases this is generally the plural form
of the resource.
def supports_resource(self, resource_name: Optional[str]) -> bool:
"""Check if the server supports a particular resource.
:param resource_name:
Resource to be requested.
When `None`, API call 'GET /' is made to cache all supported resources.
"""
if self.resources is None:
self._load_supported_resources()
Expand Down

0 comments on commit feea253

Please sign in to comment.