summaryrefslogtreecommitdiffstats
path: root/src/software/openlmi/software/LMI_SoftwareIdentityResource.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/software/openlmi/software/LMI_SoftwareIdentityResource.py')
-rw-r--r--src/software/openlmi/software/LMI_SoftwareIdentityResource.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/software/openlmi/software/LMI_SoftwareIdentityResource.py b/src/software/openlmi/software/LMI_SoftwareIdentityResource.py
index 6acec42..7797367 100644
--- a/src/software/openlmi/software/LMI_SoftwareIdentityResource.py
+++ b/src/software/openlmi/software/LMI_SoftwareIdentityResource.py
@@ -29,7 +29,7 @@ import pywbem
from pywbem.cim_provider2 import CIMProvider2
from openlmi.common import cmpi_logging
-from openlmi.software.core import SoftwareIdentityResource
+from openlmi.software.core import IdentityResource
from openlmi.software.yumdb import YumDB, errors
class LMI_SoftwareIdentityResource(CIMProvider2):
@@ -77,9 +77,9 @@ class LMI_SoftwareIdentityResource(CIMProvider2):
"""
- repo = SoftwareIdentityResource.object_path2repo(
+ repo = IdentityResource.object_path2repo(
env, model.path, kind='all')
- return SoftwareIdentityResource.repo2model(
+ return IdentityResource.repo2model(
repo, keys_only=False, model=model)
@cmpi_logging.trace_method
@@ -113,7 +113,7 @@ class LMI_SoftwareIdentityResource(CIMProvider2):
repolist = YumDB.get_instance().get_repository_list('all')
for repo in repolist:
- yield SoftwareIdentityResource.repo2model(
+ yield IdentityResource.repo2model(
repo, keys_only=keys_only, model=model)
@cmpi_logging.trace_method
@@ -240,22 +240,22 @@ class LMI_SoftwareIdentityResource(CIMProvider2):
"""
out_params = []
if param_timeoutperiod is not None:
- return ( SoftwareIdentityResource.Values.RequestStateChange. \
+ return ( IdentityResource.Values.RequestStateChange. \
Use_of_Timeout_Parameter_Not_Supported
, out_params)
if param_requestedstate not in {
- SoftwareIdentityResource.Values.RequestStateChange. \
+ IdentityResource.Values.RequestStateChange. \
RequestedState.Enabled,
- SoftwareIdentityResource.Values.RequestStateChange. \
+ IdentityResource.Values.RequestStateChange. \
RequestedState.Disabled }:
- return ( SoftwareIdentityResource.Values.RequestStateChange. \
+ return ( IdentityResource.Values.RequestStateChange. \
Invalid_State_Transition
, out_params)
with YumDB.get_instance() as ydb:
- repo = SoftwareIdentityResource.object_path2repo(env,
+ repo = IdentityResource.object_path2repo(env,
object_name, 'all')
- enable = param_requestedstate == SoftwareIdentityResource.Values. \
+ enable = param_requestedstate == IdentityResource.Values. \
RequestStateChange.RequestedState.Enabled
cmpi_logging.logger.info("%s repository %s" % ("enabling"
if enable else "disabling", repo))
@@ -271,7 +271,7 @@ class LMI_SoftwareIdentityResource(CIMProvider2):
cmpi_logging.logger.info(msg % (repo,
"enabled" if enable else "disabled"))
- rval = SoftwareIdentityResource.Values.RequestStateChange. \
+ rval = IdentityResource.Values.RequestStateChange. \
Completed_with_No_Error
return (rval, out_params)