vro_package_diff package¶
Submodules¶
vro_package_diff.config module¶
Some config items.
-
LOGGING_LEVEL_FILE
= 10¶ Log level to use.
Type: int
-
LOGGING_FILE
= 'diff.log'¶ Log file location.
Type: str
-
SUPPORTED_ELEMENT_TYPES
= ['Workflow', 'ScriptModule', 'Action', 'ResourceElement', 'ConfigurationElement', 'PolicyTemplate']¶ Currently support is limited to the following types of items.
Type: list
-
OUTPUT_SETUP
= {'conflict': {'color': '', 'legend': 'Items with a version conflict', 'symbol_ascii': '=/=', 'symbol_utf8': ' ≠ '}, 'new': {'color': '', 'legend': 'New items (will be imported)', 'symbol_ascii': '[+]', 'symbol_utf8': ' ⊕ '}, 'no_upgrade': {'color': '', 'legend': 'Items with no upgrade required', 'symbol_ascii': '<->', 'symbol_utf8': ' ⇄ '}, 'unsupported': {'color': '', 'legend': 'Items ignored in the vRO merge process', 'symbol_ascii': ' ? ', 'symbol_utf8': ' ⇄ '}, 'upgrade': {'color': '', 'legend': 'Items that will be upgraded in import process', 'symbol_ascii': '==>', 'symbol_utf8': ' ⇉ '}}¶ Define the configuration of output display (color and symbols)
Type: dict
-
CLI_CONTEXT_SETTINGS
= {'help_option_names': ['-h', '--help']}¶ Click module settings to add two way to get help.
Type: dict
vro_package_diff.vro_element module¶
Define VROElementMetadata object class.
-
class
VROElementMetadata
(id: str, xml_info: bytes, data_content: bytes)[source]¶ Bases:
object
Abstract class to represent vRealize Orchestrator elements extracted from a vRO package.
-
get_item_type
(xml_str: bytes)[source]¶ Get the item type.
Parameters: xml_str (bytes) – The XML content for item info. Returns: The type name. Return type: str
-
u_decode_plain_content
()[source]¶ UTF-16 or UTF-8 decoding of plain files.
Returns: a decoded version of the input data. Return type: str
-
Module contents¶
Provide a table-formated diff of two VMware vRealize Orchestrator packages.