-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Details: - Simplified the logic in CIMInstanceName.tocimxml(), based upon the logic that is used in CIMClassName.tocimxml(). - Cleaned up and corrected source code comments about bool and int checks in CIMInstanceName.tocimxml(). - Several cleanup changes in atomic_to_cim_xml(): - Made the tests for CIM real values based upon their type rather than the value of their cimtype attribute. - Now raising a TypeError if the type is not otherwise recognized. Previously, that was left to str()/unicode(). - Reordered the tests to check for the most common cases first. - Boolean values are now produces as upper case strings, following the recommendation in DSP0201. - As a consequence of the upper case boolean values, adjusted the testcases in testclient/...yaml accordingly. - Fixed an error in cim_xml.QUALIFIER where values had been used as a CIM-XML string without first converting them using atomic_to_cim_xml(). They are now converted properly. - Simplified the pywbem.tocimxml() function to use atomic_to_cim_xml() instead of re-implementing most of it. Invalid types are now surfaced with a TypeError instead of a ValueError. Signed-off-by: Andreas Maier <maiera@de.ibm.com>
- Loading branch information
1 parent
07ad42f
commit 2f376d0
Showing
16 changed files
with
191 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.