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
1pip install vro-package-diff
Get the help
1vro-diff --help 2Usage: vro-diff [OPTIONS] REFERENCE_PACKAGE COMPARED_PACKAGE 3 4Start a diff operation between two vRO packages. 5 6REFERENCE_PACKAGE is the package you want to use as source 7COMPARED_PACKAGE is the one you want to compare with reference one 8 9Options: 10-l, --legend Display the legend after the diff table 11-t, --test Exit with `0` if package can be safely imported. Else, returns 12 the number of errors 13-h, --help Show this message and exit.
Compare two packages:
1vro-diff tests/data/package_v1.0.package tests/data/package_v1.1.package
Compare, then display legend (
1vro-diff --legend --test tests/data/package_v1.0.package tests/data/package_v1.1.package
Compare, then exit with error if there is conflicts (
1vro-diff --test tests/data/package_v1.0.package tests/data/package_v1.1.package 2echo $?
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.