def METHOD_NAME(self):
    if self.platform.needRecovery:
        self.log.info("Attempting recovery")
        code = self.recoverFull()
        if code: return code
    code = self.recoverConfig()
    if code: return code
    return 0