Skip to content

Commit 27de581

Browse files
jlebontravier
authored andcommitted
cmd-list: don't require dirty field in coreos.assembler.container-config-git
The field is optional in the schema and it's not populated in the buildah path. Just assume it's not dirty if it's missing.
1 parent 7402bb8 commit 27de581

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd-list

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def main():
3838
config = git['commit']
3939
if 'branch' in git:
4040
config = f"{git['branch']} ({config[:12]})"
41-
if git['dirty'] != "false":
41+
if git.get('dirty', 'false') != "false":
4242
config += " (dirty)"
4343
print(f" Config: {config}")
4444
if build['id'] in tags:

0 commit comments

Comments
 (0)