diff options
author | Michal Minar <miminar@redhat.com> | 2013-11-19 12:51:28 +0100 |
---|---|---|
committer | Michal Minar <miminar@redhat.com> | 2013-11-20 13:30:45 +0100 |
commit | f6af59089a87f0c12dca3bccd5ebd1d44b57e735 (patch) | |
tree | c589d3fea5d88d939534d90e253599075cbfbd22 /src/software | |
parent | d543a65e8c1768f5afeedc660565d63c1dc24f11 (diff) | |
download | openlmi-providers-f6af59089a87f0c12dca3bccd5ebd1d44b57e735.tar.gz openlmi-providers-f6af59089a87f0c12dca3bccd5ebd1d44b57e735.tar.xz openlmi-providers-f6af59089a87f0c12dca3bccd5ebd1d44b57e735.zip |
software: fixed handling of invalid request
Due to a failure in handling request for instance of
LMI_SoftwareIdentityFileCheck representing non-existent file, a
CIM_ERR_FAILED was delivered to client instead of CIM_ERR_NOT_FOUND.
Resolves: rhbz#1032502
Diffstat (limited to 'src/software')
-rw-r--r-- | src/software/lmi/software/core/IdentityFileCheck.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/software/lmi/software/core/IdentityFileCheck.py b/src/software/lmi/software/core/IdentityFileCheck.py index be6bd7a..23ed056 100644 --- a/src/software/lmi/software/core/IdentityFileCheck.py +++ b/src/software/lmi/software/core/IdentityFileCheck.py @@ -799,7 +799,7 @@ def object_path2file_check(objpath): "Could not find package matching SoftwareElementID \"%s\"" % objpath["SoftwareElementID"]) except errors.FileNotFound as exc: - raise pywbem.CIMError(pywbem.CIM_ERR_NOT_FOUND, exc.args[1]) + raise pywbem.CIMError(pywbem.CIM_ERR_NOT_FOUND, exc.message) # last check for file path if objpath["Name"] not in pkg_check: |