Commit de82baa9 authored by Paul Graydon's avatar Paul Graydon

wendelin_telecom_base: Update ERP5Site_registerOrs tag check

parent 0a1c18a7
......@@ -22,8 +22,9 @@ if data_acquisition_unit:
response_dict = dict(error_msg=error_msg)
return json.dumps(response_dict)
# Check if the fluentbit tag has a valid format
fluentbit_tag_components = fluentbit_tag.split('_')
if len(fluentbit_tag_components) != 3:
if len(fluentbit_tag_components) not in [2, 3]:
error_msg = "Invalid ORS tag %s found" % fluentbit_tag
response_dict = dict(error_msg=error_msg)
return json.dumps(response_dict)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment