Skip to content

Commit

Permalink
properly call tree.get() for timestamp handling
Browse files Browse the repository at this point in the history
fixes #8623
  • Loading branch information
jlsherrill committed Apr 26, 2021
1 parent edd3daa commit a33e262
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pulp_rpm/app/kickstart/treeinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def parsed_sections(self):
tree = self.original_parser._sections.get("tree", {})

if "." in str(tree.get("build_timestamp")):
build_timestamp = float(tree.get["build_timestamp"])
build_timestamp = float(tree.get("build_timestamp"))

if build_timestamp and parser._sections.get("general", {}).get("timestamp"):
parser._sections["general"]["timestamp"] = build_timestamp
Expand Down

0 comments on commit a33e262

Please sign in to comment.