def _is_deploy_successful(last_logs): try: data = json.loads(to_native_str(last_logs[-1])) if 'status' in data and data['status'] == 'ok': return True except Exception: pass