public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [edk2-redfish-client][PATCH 5/6] Tool/Redfish-Profile-Simulator: Add missing module
@ 2023-05-08 14:52 Nickle Wang
  2023-05-09  6:06 ` Chang, Abner
  0 siblings, 1 reply; 2+ messages in thread
From: Nickle Wang @ 2023-05-08 14:52 UTC (permalink / raw)
  To: devel; +Cc: Abner Chang, Igor Kulchytskyy

Add missing module import for conditional, RfCollection, RfResource,
RfResourceRaw, hashlib and OrderedDict

Signed-off-by: Nickle Wang <nicklew@nvidia.com>
Cc: Abner Chang <abner.chang@amd.com>
Cc: Igor Kulchytskyy <igork@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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [edk2-redfish-client][PATCH 5/6] Tool/Redfish-Profile-Simulator: Add missing module
  2023-05-08 14:52 [edk2-redfish-client][PATCH 5/6] Tool/Redfish-Profile-Simulator: Add missing module Nickle Wang
@ 2023-05-09  6:06 ` Chang, Abner
  0 siblings, 0 replies; 2+ messages in thread
From: Chang, Abner @ 2023-05-09  6:06 UTC (permalink / raw)
  To: Nickle Wang, devel@edk2.groups.io; +Cc: Igor Kulchytskyy

[AMD Official Use Only - General]

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

> -----Original Message-----
> From: Nickle Wang <nicklew@nvidia.com>
> Sent: Monday, May 8, 2023 10:52 PM
> To: devel@edk2.groups.io
> Cc: Chang, Abner <Abner.Chang@amd.com>; Igor Kulchytskyy
> <igork@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 <nicklew@nvidia.com>
> Cc: Abner Chang <abner.chang@amd.com>
> Cc: Igor Kulchytskyy <igork@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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-05-09  6:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-08 14:52 [edk2-redfish-client][PATCH 5/6] Tool/Redfish-Profile-Simulator: Add missing module Nickle Wang
2023-05-09  6:06 ` Chang, Abner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox