public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [edk2-staging][PATCH v2 5/5] edk2-staging/RedfishClientPkg: Add missing module
@ 2022-06-21  1:47 Nickle Wang
  2022-06-21  3:40 ` Abner Chang
  0 siblings, 1 reply; 2+ messages in thread
From: Nickle Wang @ 2022-06-21  1:47 UTC (permalink / raw)
  To: devel; +Cc: Nickle Wang, Abner Chang, Yang Atom, Nick Ramirez

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

Signed-off-by: Nickle Wang <nickle.wang@hpe.com>
Cc: Abner Chang <abner.chang@hpe.com>
Cc: Yang Atom <Atom.Yang@amd.com>
Cc: Nick Ramirez <nramirez@nvidia.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/RedfishClientPkg/Tools/Redfish-Profile-Simulator/v1sim/redfishURIs.py b/RedfishClientPkg/Tools/Redfish-Profile-Simulator/v1sim/redfishURIs.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 @@
 #
 # 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/RedfishClientPkg/Tools/Redfish-Profile-Simulator/v1sim/resource.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
 
 import flask
+import hashlib
+from collections import OrderedDict
 
 if sys.version_info >= (3, 5):
     from typing import Type
-- 
2.32.0.windows.2


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

* Re: [edk2-staging][PATCH v2 5/5] edk2-staging/RedfishClientPkg: Add missing module
  2022-06-21  1:47 [edk2-staging][PATCH v2 5/5] edk2-staging/RedfishClientPkg: Add missing module Nickle Wang
@ 2022-06-21  3:40 ` Abner Chang
  0 siblings, 0 replies; 2+ messages in thread
From: Abner Chang @ 2022-06-21  3:40 UTC (permalink / raw)
  To: Wang, Nickle (Server BIOS), devel@edk2.groups.io; +Cc: Yang Atom, Nick Ramirez

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

> -----Original Message-----
> From: Wang, Nickle (Server BIOS) <nickle.wang@hpe.com>
> Sent: Tuesday, June 21, 2022 9:48 AM
> To: devel@edk2.groups.io
> Cc: Wang, Nickle (Server BIOS) <nickle.wang@hpe.com>; Chang, Abner (HPS
> SW/FW Technologist) <abner.chang@hpe.com>; Yang Atom
> <Atom.Yang@amd.com>; Nick Ramirez <nramirez@nvidia.com>
> Subject: [edk2-staging][PATCH v2 5/5] edk2-staging/RedfishClientPkg: Add
> missing module
> 
> Add missing module import for conditional, RfCollection, RfResource,
> RfResourceRaw, hashlib and OrderedDict
> 
> Signed-off-by: Nickle Wang <nickle.wang@hpe.com>
> Cc: Abner Chang <abner.chang@hpe.com>
> Cc: Yang Atom <Atom.Yang@amd.com>
> Cc: Nick Ramirez <nramirez@nvidia.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/RedfishClientPkg/Tools/Redfish-Profile-
> Simulator/v1sim/redfishURIs.py b/RedfishClientPkg/Tools/Redfish-Profile-
> Simulator/v1sim/redfishURIs.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 @@
>  #
> 
>  # 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/RedfishClientPkg/Tools/Redfish-Profile-Simulator/v1sim/resource.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
> 
> 
> 
>  import flask
> 
> +import hashlib
> 
> +from collections import OrderedDict
> 
> 
> 
>  if sys.version_info >= (3, 5):
> 
>      from typing import Type
> 
> --
> 2.32.0.windows.2


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

end of thread, other threads:[~2022-06-21  3:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-21  1:47 [edk2-staging][PATCH v2 5/5] edk2-staging/RedfishClientPkg: Add missing module Nickle Wang
2022-06-21  3:40 ` Abner Chang

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