From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by mx.groups.io with SMTP id smtpd.web08.3192.1655105012922196689 for ; Mon, 13 Jun 2022 00:23:32 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=DEn6pX8I; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: hpe.com, ip: 148.163.147.86, mailfrom: prvs=01631ee5f2=nickle.wang@hpe.com) Received: from pps.filterd (m0134421.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 25CN1w0U024031; Mon, 13 Jun 2022 07:23:31 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=pps0720; bh=OcMQVUMdV3roXqZpAOMObqwTm+L4dnKYoHxfX1ELROI=; b=DEn6pX8IfccHER+spgYXR1HxSnZrHoRb7z4kZ0C/3ZHLFU3lhDSG+QG4mgALwsK8fcXj DD473UD8eJJxYxc09TsyzcWW7Vh8mQjvSHAITdqCjmD3BX/WgN/2WtRB9bLxZwzSxHAh p9yB16qws885D1FCZ2qjJ+yKerl0JsEmKsiJ4MnkNabjSIGeQfjjgZ6GSk2A8MoqqgY3 wrY8pGD78Z92CCEb/MmDfHmAncdttKbxh+ol/4T82rtdUVEfdrKKFpW1WLX6qhebRi+F ajYCjUyVoeZsR3tylwh6V72WLoo0cqjXWO2/rnRhAXdSttMhovr6wE+xxPF5m+95QCKq vA== Received: from p1lg14881.it.hpe.com (p1lg14881.it.hpe.com [16.230.97.202]) by mx0b-002e3701.pphosted.com (PPS) with ESMTPS id 3gmh8f6a89-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 13 Jun 2022 07:23:31 +0000 Received: from p1lg14885.dc01.its.hpecorp.net (unknown [10.119.18.236]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by p1lg14881.it.hpe.com (Postfix) with ESMTPS id F2BB58058CB; Mon, 13 Jun 2022 07:23:30 +0000 (UTC) Received: from WAFM3XJD5N.asiapacific.hpqcorp.net (unknown [16.231.227.36]) by p1lg14885.dc01.its.hpecorp.net (Postfix) with ESMTP id D1C3E84015C; Mon, 13 Jun 2022 07:23:27 +0000 (UTC) From: "Nickle Wang" To: devel@edk2.groups.io Cc: Nickle Wang , Abner Chang , Yang Atom , Nick Ramirez Subject: [edk2-staging][PATCH 5/5] edk2-staging/RedfishClientPkg: Add missing module Date: Mon, 13 Jun 2022 15:23:21 +0800 Message-Id: <20220613072321.14-1-nickle.wang@hpe.com> X-Mailer: git-send-email 2.32.0.windows.2 MIME-Version: 1.0 X-Proofpoint-GUID: 2bgo-ehUH7phPuRKPocHuGm3jD3RwJop X-Proofpoint-ORIG-GUID: 2bgo-ehUH7phPuRKPocHuGm3jD3RwJop X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.874,Hydra:6.0.517,FMLib:17.11.64.514 definitions=2022-06-13_02,2022-06-09_02,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=979 spamscore=0 lowpriorityscore=0 adultscore=0 phishscore=0 suspectscore=0 priorityscore=1501 impostorscore=0 clxscore=1015 bulkscore=0 mlxscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2204290000 definitions=main-2206130032 Content-Transfer-Encoding: quoted-printable Add missing module import for conditional, RfCollection, RfResource, RfResourceRaw, hashlib and OrderedDict Signed-off-by: Nickle Wang Cc: Abner Chang Cc: Yang Atom Cc: Nick Ramirez --- .../Tools/Redfish-Profile-Simulator/v1sim/redfishURIs.py | 5 ++++- .../Tools/Redfish-Profile-Simulator/v1sim/resource.py | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/RedfishClientPkg/Tools/Redfish-Profile-Simulator/v1sim/redfish= URIs.py b/RedfishClientPkg/Tools/Redfish-Profile-Simulator/v1sim/redfishURI= s.py index 35d3794cc6..53a4484979 100644 --- a/RedfishClientPkg/Tools/Redfish-Profile-Simulator/v1sim/redfishURIs.py +++ b/RedfishClientPkg/Tools/Redfish-Profile-Simulator/v1sim/redfishURIs.py @@ -1,7 +1,7 @@ #=0D # Copyright Notice:=0D # Copyright (c) 2019, Intel Corporation. All rights reserved.
=0D -# (C) Copyright 2021 Hewlett Packard Enterprise Development LP
=0D +# (C) Copyright 2021-2022 Hewlett Packard Enterprise Development LP
=0D # SPDX-License-Identifier: BSD-2-Clause-Patent=0D #=0D # Copyright Notice:=0D @@ -16,6 +16,9 @@ from flask import request =0D from .flask_redfish_auth import RfHTTPBasicOrTokenAuth=0D =0D +from redfishProfileSimulator import conditional=0D +from v1sim.resource import RfCollection, RfResource, RfResourceRaw=0D +=0D from werkzeug.serving import WSGIRequestHandler=0D =0D def rfApi_SimpleServer(root, versions, host=3D"127.0.0.1", port=3D5000, ce= rt=3D"", key=3D""):=0D diff --git a/RedfishClientPkg/Tools/Redfish-Profile-Simulator/v1sim/resourc= e.py b/RedfishClientPkg/Tools/Redfish-Profile-Simulator/v1sim/resource.py index 0c7a838281..f6bd15cf32 100644 --- a/RedfishClientPkg/Tools/Redfish-Profile-Simulator/v1sim/resource.py +++ b/RedfishClientPkg/Tools/Redfish-Profile-Simulator/v1sim/resource.py @@ -15,6 +15,8 @@ import os import sys=0D =0D import flask=0D +import hashlib=0D +from collections import OrderedDict=0D =0D if sys.version_info >=3D (3, 5):=0D from typing import Type=0D --=20 2.32.0.windows.2