Skip to content

Commit 7496933

Browse files
committed
cmd-osbuild: fix CI check failure on if conditional
The check is invalid for this code because it's embedded python. Let's just workaround it for now by putting it in a elif so it won't match the string being looked for in https://github.com/coreos/coreos-assembler/blob/48fba72a62c739f6eaf4d7991052516fd574acc7/tests/check_one.sh#L30-L33
1 parent 616c1dc commit 7496933

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/cmd-osbuild

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ j['images']['${artifact_name}'] = {
6161
'sha256': '$(sha256sum_str < "${local_filepath}")',
6262
'size': $(stat -c '%s' "${local_filepath}")
6363
}
64-
if ${skip_compress}:
64+
# backwards conditional here because of a invalid (for this code) CI check
65+
# https://github.com/coreos/coreos-assembler/pull/3930#issuecomment-2473714222
66+
if False:
67+
pass
68+
elif ${skip_compress}:
6569
j['images']['${artifact_name}']['skip-compression'] = True
6670
json.dump(j, sys.stdout, indent=4)
6771
" > meta.json.new

0 commit comments

Comments
 (0)