Skip to content

Commit

Permalink
Merge pull request #5419 from rvykydal/fix-ostreecontainer-ks-parsing
Browse files Browse the repository at this point in the history
Do not crash on default None values of ostreecontainer command
  • Loading branch information
rvykydal authored Jan 25, 2024
2 parents 46f9b39 + da218d9 commit 141cb21
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ def process_kickstart(self, data):
"""Process the kickstart data."""
configuration = RPMOSTreeContainerConfigurationData()

configuration.stateroot = data.ostreecontainer.stateroot
configuration.url = data.ostreecontainer.url
configuration.remote = data.ostreecontainer.remote
configuration.transport = data.ostreecontainer.transport
configuration.stateroot = data.ostreecontainer.stateroot or ""
configuration.url = data.ostreecontainer.url or ""
configuration.remote = data.ostreecontainer.remote or ""
configuration.transport = data.ostreecontainer.transport or ""
configuration.signature_verification_enabled = not data.ostreecontainer.noSignatureVerification

self.set_configuration(configuration)
Expand Down

0 comments on commit 141cb21

Please sign in to comment.