]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
The relative path for the "ucs_inventory.ini" file has been fixed
authorEdgar Magana <eperdomo@cisco.com>
Wed, 16 Nov 2011 22:52:40 +0000 (14:52 -0800)
committerEdgar Magana <eperdomo@cisco.com>
Wed, 16 Nov 2011 22:52:40 +0000 (14:52 -0800)
Change-Id: I38053df8b398e3fadcc6820c1118b3685ccd4174

plugins/cisco-plugin/lib/quantum/plugins/cisco/ucs/cisco_ucs_inventory.py
plugins/cisco-plugin/lib/quantum/plugins/cisco/ucs/cisco_ucs_inventory_configuration.py

index d3edc46235dd22198e15571c853705a309cb5d63..7e78fb26a437195ae704001c5b5052204893eccb 100644 (file)
@@ -98,8 +98,8 @@ class UCSInventory(L2NetworkDeviceInventoryBase):
     def _load_inventory(self):
         """Load the inventory from a config file"""
         inventory = deepcopy(conf.INVENTORY)
-        #LOG.info("Loaded UCS inventory: %s\n" % inventory)
-        #LOG.info("Building UCS inventory state (this may take a while)...")
+        LOG.info("Loaded UCS inventory: %s\n" % inventory)
+        LOG.info("Building UCS inventory state (this may take a while)...")
 
         for ucsm in inventory.keys():
             ucsm_ip = inventory[ucsm][const.IP_ADDRESS]
@@ -142,7 +142,7 @@ class UCSInventory(L2NetworkDeviceInventoryBase):
                                                                ucsm_password)
                     blades_dict[blade_id] = blade_data
 
-        #LOG.debug("UCS Inventory state is: %s\n" % self._inventory_state)
+        LOG.debug("UCS Inventory state is: %s\n" % self._inventory_state)
         return True
 
     def _get_host_name(self, ucsm_ip, chassis_id, blade_id):
index 721ee11f5c15fc0e8eeb99216d6e4e3efe9bde8a..515efe1f43070491fbc4b68d74e5f70eb94daaf3 100644 (file)
@@ -23,7 +23,7 @@ import os
 from quantum.common.config import find_config_file
 from quantum.plugins.cisco.common import cisco_configparser as confp
 
-CP = confp.CiscoConfigParser(find_config_file({}, [],
-                             'plugins/cisco/ucs_inventory.ini'))
+CONF_FILE = find_config_file({}, None, "ucs_inventory.ini")
+CP = confp.CiscoConfigParser(CONF_FILE)
 
 INVENTORY = CP.walk(CP.dummy)