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: