Browse Source

Changed name of cpc_uuid config option to cpc_object_id

Reason for the change is that the HMC API book does not
mention anywhere that the format of the ID is a UUID, and
the name of the resource property is "object-id".

This change set changes the name of the DPM config option
"cpc_uuid" to "cpc_object_id", and updates the unit testcase
accordingly.

Change-Id: I9f4b7dbbdbb19d00c6f0752c028a7462c2bbee3e
Partial-Bug: 1659304
Signed-off-by: Andreas Maier <maiera@de.ibm.com>
Andreas Maier 2 years ago
parent
commit
94d8e2293f
2 changed files with 3 additions and 3 deletions
  1. 1
    1
      os_dpm/config/config.py
  2. 2
    2
      os_dpm/tests/unit/config/test_config.py

+ 1
- 1
os_dpm/config/config.py View File

@@ -33,7 +33,7 @@ COMMON_DPM_OPTS = [
33 33
     User name for connection to the HMC"""),
34 34
     cfg.StrOpt('hmc_password', help="""
35 35
     Password for connection to the HMC"""),
36
-    cfg.StrOpt('cpc_uuid', help="""
36
+    cfg.StrOpt('cpc_object_id', help="""
37 37
     DPM Object-id of the target CPC"""),
38 38
 ]
39 39
 

+ 2
- 2
os_dpm/tests/unit/config/test_config.py View File

@@ -27,10 +27,10 @@ class TestNetworkingDpm(base.BaseTestCase):
27 27
         conf.load_raw_values(group="dpm", hmc='host')
28 28
         conf.load_raw_values(group="dpm", hmc_username='username')
29 29
         conf.load_raw_values(group="dpm", hmc_password='password')
30
-        conf.load_raw_values(group="dpm", cpc_uuid='uuid')
30
+        conf.load_raw_values(group="dpm", cpc_object_id='uuid')
31 31
 
32 32
         config.register_opts()
33 33
         self.assertEqual('host', cfg.CONF.dpm.hmc)
34 34
         self.assertEqual('username', cfg.CONF.dpm.hmc_username)
35 35
         self.assertEqual('password', cfg.CONF.dpm.hmc_password)
36
-        self.assertEqual('uuid', cfg.CONF.dpm.cpc_uuid)
36
+        self.assertEqual('uuid', cfg.CONF.dpm.cpc_object_id)

Loading…
Cancel
Save