Skip to content

Commit a290418

Browse files
committed
Always shorten commit ID to 8 characters for "cname" creation
Signed-off-by: Tobias Wolf <[email protected]>
1 parent e798faa commit a290418

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gardenlinux/features/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def get_version_and_commit_id_from_files(gardenlinux_root):
158158

159159
if os.access(path.join(gardenlinux_root, "COMMIT"), os.R_OK):
160160
with open(path.join(gardenlinux_root, "COMMIT"), "r") as fp:
161-
commit_id = fp.read().strip()
161+
commit_id = fp.read().strip()[:8]
162162

163163
if os.access(path.join(gardenlinux_root, "VERSION"), os.R_OK):
164164
with open(path.join(gardenlinux_root, "VERSION"), "r") as fp:

0 commit comments

Comments
 (0)