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

controller-id program input fix

parent afee2d9e
Pipeline #45376 passed with stage
in 1 minute and 9 seconds
......@@ -97,7 +97,7 @@ def main():
help="Set a paths to TLS files to access mqtt via encrypted connection."
)
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(),
help="sets which controller on the messages bus should be configured (8 bytes is hex)",
)
mqtt_parser.add_argument(
......
......@@ -92,7 +92,7 @@ def main():
help="Set a paths to TLS files to access mqtt via encrypted connection."
)
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(),
help="sets which controller on the messages bus should be configured (8 bytes is hex)",
)
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