Skip to content

Commit 338a16b

Browse files
author
Alexander Stefanov
committed
lint hostname bette
1 parent f3c211a commit 338a16b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

build-rpm.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ def is_valid_hostname(hostname):
7474
if re.match(r"[a-f0-9]{12}", hostname.split(".")[0]):
7575
print("container hostname does not pass naming policy [{}]".format(hostname))
7676
return False
77+
else:
78+
print("hostname: {} linting passed".format(hostname))
79+
return True
7780

7881

7982
def print_log(message):

0 commit comments

Comments
 (0)