Skip to content

Commit

Permalink
Revert extra print statement in validate command
Browse files Browse the repository at this point in the history
Ticket: CFE-3905
Changelog: none
  • Loading branch information
craigcomstock committed May 5, 2022
1 parent af04850 commit 31e685d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion cfbs/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ def validate_version(name, modules):
raise CFBSIndexException(name, "Missing required attribute 'version'")
if type(modules[name]["version"]) != str:
raise CFBSIndexException(name, "'version' must be of type string")
print("validating version {}".format(modules[name]["version"]))
regex = r"(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-([0-9]+))?"
if re.fullmatch(regex, modules[name]["version"]) == None:
raise CFBSIndexException(name, "'version' must match regex %s" % regex)
Expand Down

0 comments on commit 31e685d

Please sign in to comment.