Skip to content

Commit

Permalink
Rename _content_uri to _valid_content_uri
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-cerny committed Apr 21, 2023
1 parent a398cc9 commit 5f9750d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions org_fedora_oscap/content_discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class ContentBringer:
CONTENT_DOWNLOAD_LOCATION = pathlib.Path(common.INSTALLATION_CONTENT_DIR)

def __init__(self, what_if_fail):
self._content_uri = ""
self._valid_content_uri = ""
self.dest_file_name = ""

self.activity_lock = threading.Lock()
Expand All @@ -52,7 +52,7 @@ def __init__(self, what_if_fail):

@property
def content_uri(self):
return self._content_uri
return self._valid_content_uri

@content_uri.setter
def content_uri(self, uri):
Expand All @@ -70,7 +70,7 @@ def content_uri(self, uri):
if not basename:
msg = f"Unable to deduce basename from the '{uri}' URL"
raise KickstartValueError(msg)
self._content_uri = uri
self._valid_content_uri = uri
self.dest_file_name = self.CONTENT_DOWNLOAD_LOCATION / basename

def fetch_content(self, content_uri, ca_certs_path=""):
Expand Down

0 comments on commit 5f9750d

Please sign in to comment.