F5Networks / f5-cloud-libs

Node.js libraries to assist in cloud deployments.
Apache License 2.0
29 stars 14 forks source link

Add product flag to cluster.js to allow for overriding #19

Open kvonbredow opened 4 years ago

kvonbredow commented 4 years ago

This PR adds the product flag which can optionally be set and passed into the BIGIP init() call. Without this ability, the check for the product type would rely on a grep invocation on the main config. Unfortunately, if your devices' hostnames contain the string "product", this would fail and the script would do nothing.