Update IPMI test case

Changes:
    - Add code to dynamically load the PowerControl redfish URI.
    - Adjust debug log and logging request in library.

Resolves openbmc/openbmc-test-automation#2091

Change-Id: I79315d615d39fdd5dda02ccb9b66bf27c0e8f06f
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/bmc_redfish_utils.py b/lib/bmc_redfish_utils.py
index 6da4af3..4510b5b 100644
--- a/lib/bmc_redfish_utils.py
+++ b/lib/bmc_redfish_utils.py
@@ -94,10 +94,12 @@
         attribute                Name of the attribute (e.g. 'PowerSupplies').
         """
 
+        # Set quiet variable to keep subordinate get() calls quiet.
+        quiet = 1
+
         # Get the member id list.
         # e.g. ['/redfish/v1/Chassis/foo', '/redfish/v1/Chassis/bar']
         resource_path_list = self.get_member_list(resource_path)
-        BuiltIn().log_to_console(resource_path_list)
 
         valid_path_list = []
 
@@ -105,13 +107,13 @@
             # Get all the child object path under the member id e.g.
             # ['/redfish/v1/Chassis/foo/Power','/redfish/v1/Chassis/bar/Power']
             child_path_list = self.list_request(path_idx)
-            BuiltIn().log_to_console(child_path_list)
 
             # Iterate and check if path object has the attribute.
             for child_path_idx in child_path_list:
                 if self.get_attribute(child_path_idx, attribute):
                     valid_path_list.append(child_path_idx)
 
+        BuiltIn().log_to_console(valid_path_list)
         return valid_path_list
 
     def get_endpoint_path_list(self, resource_path, end_point_prefix):