Verified Commit 1164d1a8 authored by Štěpán Henek's avatar Štěpán Henek 🌩

controller-id program input fix

parent 640e728b
Pipeline #45374 passed with stage
in 19 minutes and 7 seconds
......@@ -86,7 +86,7 @@ def main():
mqtt_parser.add_argument("--host", default='127.0.0.1')
mqtt_parser.add_argument("--port", type=int, default=1883)
mqtt_parser.add_argument(
"--controller-id", type=lambda x: re.match(r"[a-zA-Z]{16}", x).group().upper(),
"--controller-id", type=lambda x: re.match(r"[0-9a-zA-Z]{16}", x).group().upper(),
required=False
)
mqtt_parser.add_argument(
......
......@@ -76,7 +76,7 @@ def main():
mqtt_parser.add_argument("--host", default='localhost')
mqtt_parser.add_argument("--port", type=int, default=1883)
mqtt_parser.add_argument(
"--controller-id", type=lambda x: re.match(r"[a-zA-Z]{16}", x).group().upper(),
"--controller-id", type=lambda x: re.match(r"[0-9a-zA-Z]{16}", x).group().upper(),
required=False
)
mqtt_parser.add_argument(
......
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