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 authored and goosemania committed Apr 27, 2021
1 parent 1551534 commit 7609331
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES/8623.bugfix
@@ -0,0 +1 @@
Fixed sync/migration of the kickstart repositories with floating point build_timestamp.
2 changes: 1 addition & 1 deletion pulp_rpm/app/kickstart/treeinfo.py
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 7609331

Please sign in to comment.