Skip to content

Commit 1420036

Browse files
joelcapitaodustymabe
authored andcommitted
src/cmd-import: indent lockfiles properly
We want to use the lockfiles generated by the cmd-import command into our bump-lockfile Jenkins job. If the job is successful then we commit those files into the config repo. So we need them to be properly formatted/indented.
1 parent 0b3b1e0 commit 1420036

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd-import

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def generate_lockfile_and_commitmeta(tmpd, ostree_commit, build_meta):
152152
json.dump(commitmeta, f, indent=2)
153153

154154
with open(tmp_lockfile, 'w') as f:
155-
json.dump(fp=f, obj={
155+
json.dump(fp=f, indent=2, obj={
156156
'packages': rpmdb,
157157
'metadata': {'generated': rfc3339_time(set_midnight=True)}
158158
})

0 commit comments

Comments
 (0)