New release of VMware vRealize Orchestrator package diff tool
About a year ago, I published a small tool to compare two VMware vRealize Orchestrator packages file: vRO Package Diff. Initial version was a simple python script accepting 2 files as arguments and without any input controls.
Today, I publish a v2 of the tool with the following changes:
vro-package-diffis now a Pypi hosted project: vro-package-diff and so, can be installed with
- An endpoit
vro-diffto access to the tool from any path location.
- Usage of
- inputs packages
- legend display
- test feature
- A test feature
- Documentation is hosted on vro-package-diff.readthedocs.io
- Travis pipeline
Install the new version
From a python environment with
pip install vro-package-diff
Get the help
vro-diff --help Usage: vro-diff [OPTIONS] REFERENCE_PACKAGE COMPARED_PACKAGE Start a diff operation between two vRO packages. REFERENCE_PACKAGE is the package you want to use as source COMPARED_PACKAGE is the one you want to compare with reference one Options: -l, --legend Display the legend after the diff table -t, --test Exit with `0` if package can be safely imported. Else, returns the number of errors -h, --help Show this message and exit.
Compare two packages:
vro-diff tests/data/package_v1.0.package tests/data/package_v1.1.package
Compare, then display legend (
vro-diff --legend --test tests/data/package_v1.0.package tests/data/package_v1.1.package
Compare, then exit with error if there is conflicts (
vro-diff --test tests/data/package_v1.0.package tests/data/package_v1.1.package echo $?
The script will exit with the number of items with a conflict situation.
-–test option can be usefull to implement CI/CD pipelines to compare, then upload(if there is no conflict) vRO packages.