[AMD Official Use Only - General]

Reviewed-by: Abner Chang <abner.ch...@amd.com>

> -----Original Message-----
> From: Nickle Wang <nick...@nvidia.com>
> Sent: Monday, May 8, 2023 10:52 PM
> To: devel@edk2.groups.io
> Cc: Chang, Abner <abner.ch...@amd.com>; Igor Kulchytskyy
> <ig...@ami.com>
> Subject: [edk2-redfish-client][PATCH 5/6] Tool/Redfish-Profile-Simulator:
> Add missing module
> 
> Caution: This message originated from an External Source. Use proper
> caution when opening attachments, clicking links, or responding.
> 
> 
> Add missing module import for conditional, RfCollection, RfResource,
> RfResourceRaw, hashlib and OrderedDict
> 
> Signed-off-by: Nickle Wang <nick...@nvidia.com>
> Cc: Abner Chang <abner.ch...@amd.com>
> Cc: Igor Kulchytskyy <ig...@ami.com>
> ---
>  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/Tools/Redfish-Profile-Simulator/v1sim/redfishURIs.py
> b/Tools/Redfish-Profile-Simulator/v1sim/redfishURIs.py
> index 35d3794c..53a44849 100644
> --- a/Tools/Redfish-Profile-Simulator/v1sim/redfishURIs.py
> +++ b/Tools/Redfish-Profile-Simulator/v1sim/redfishURIs.py
> @@ -1,7 +1,7 @@
>  #
>  # Copyright Notice:
>  # Copyright (c) 2019, Intel Corporation. All rights reserved.<BR> -# (C)
> Copyright 2021 Hewlett Packard Enterprise Development LP<BR>
> +# (C) Copyright 2021-2022 Hewlett Packard Enterprise Development LP<BR>
>  # SPDX-License-Identifier: BSD-2-Clause-Patent  #  # Copyright Notice:
> @@ -16,6 +16,9 @@ from flask import request
> 
>  from .flask_redfish_auth import RfHTTPBasicOrTokenAuth
> 
> +from redfishProfileSimulator import conditional from v1sim.resource
> +import RfCollection, RfResource, RfResourceRaw
> +
>  from werkzeug.serving import WSGIRequestHandler
> 
>  def rfApi_SimpleServer(root, versions, host="127.0.0.1", port=5000, cert="",
> key=""):
> diff --git a/Tools/Redfish-Profile-Simulator/v1sim/resource.py
> b/Tools/Redfish-Profile-Simulator/v1sim/resource.py
> index 0c7a8382..f6bd15cf 100644
> --- a/Tools/Redfish-Profile-Simulator/v1sim/resource.py
> +++ b/Tools/Redfish-Profile-Simulator/v1sim/resource.py
> @@ -15,6 +15,8 @@ import os
>  import sys
> 
>  import flask
> +import hashlib
> +from collections import OrderedDict
> 
>  if sys.version_info >= (3, 5):
>      from typing import Type
> --
> 2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#104326): https://edk2.groups.io/g/devel/message/104326
Mute This Topic: https://groups.io/mt/98762715/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to