[otci] fix parse dataset security policy (#6661)

This commit is contained in:
Simon Lin
2021-05-21 08:27:38 -07:00
committed by GitHub
parent 136ad4e78b
commit fc513b298d
+1 -1
View File
@@ -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: