Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
m-bucher committed Aug 2, 2024
1 parent 752175a commit 23d42b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rhsm/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

import importlib.util
import rpm
from typing import List, Union
from typing import List, Optional, Union

from rhsm import ourjson as json
from rhsm.utils import suppress_output
Expand Down Expand Up @@ -201,10 +201,10 @@ class EnabledReposProfile:
Collect information about enabled repositories
"""

def __init__(self, repo_file: str = REPOSITORY_PATH) -> None:
def __init__(self, repo_file: Optional[str] = None) -> None:
self._content = []
for repo_file_cls, _ in get_repo_file_classes():
repo_file = repo_file_cls()
repo_file = repo_file_cls(repo_file)
repo_file.read()
self._content.extend(repo_file.enabled_repos())
self._content.sort(key=lambda x: x["baseurl"])
Expand Down

0 comments on commit 23d42b3

Please sign in to comment.