From fc513b298dba55e1f3acc566c251fe8408484321 Mon Sep 17 00:00:00 2001 From: Simon Lin Date: Fri, 21 May 2021 23:27:38 +0800 Subject: [PATCH] [otci] fix parse dataset security policy (#6661) --- tools/otci/otci/otci.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/otci/otci/otci.py b/tools/otci/otci/otci.py index 02b5869e3..14f009854 100644 --- a/tools/otci/otci/otci.py +++ b/tools/otci/otci/otci.py @@ -1683,7 +1683,7 @@ class OTCI(object): elif key == 'PSKc': dataset['pskc'] = val elif key == 'Security Policy': - rotation_time, flags = val.split(' ') + rotation_time, flags = val.split(', ') if ', ' in val else val.split(' ') rotation_time = int(rotation_time) dataset['security_policy'] = SecurityPolicy(rotation_time, flags) else: