-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added common functions for hyphen-underscore property name conversions
Details: * Added a function underscore_properties() that converts single or lists of resources from property names with hyphens (as used by the HMC) to property names with underscores (as used by Ansble). * Added a function hyphen_properties() that converts a single resource property dict from property names with underscores (as used by Ansble) to property names with hyphens (as used by the HMC). * Added unit test cases for both functions. Signed-off-by: Andreas Maier <[email protected]>
- Loading branch information
1 parent
df3c585
commit 92d98b9
Showing
4 changed files
with
231 additions
and
1 deletion.
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