def parse_result(self, data):
<EOL>fmt = "<STR_LIT:B>"<EOL>self.status, = struct.unpack(fmt, data)<EOL>if self.status == pyhsm.defines.YSM_STATUS_OK:<EOL><INDENT>return True<EOL><DEDENT>else:<EOL><INDENT>raise pyhsm.exception.YHSM_CommandFailed(pyhsm.defines.cmd2str(self.command), self.status)<EOL><DEDENT>
Parse result of L{pyhsm.defines.YSM_KEY_STORAGE_UNLOCK} command.

@return: Only returns (True) on successful unlock
@rtype: bool

@raise pyhsm.exception.YHSM_CommandFailed: YubiHSM failed to unlock key storage