-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Utility environment lookup, attributes #66
Merged
Merged
Conversation
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
…gurors, collectors, updaters. This interface defines a method to retrieve the utility attributes like the name, absolute path and an error if it was not found on the host system.
This allows consumers of the library to define env vars for all utilities supported by ironlib.
…ble() These methods return the utility command absolute path and checks if the bin is available and executable.
The Attributes() method returns the utility name, absolute path and check if the executable is available for execution.
It prints output in the form ``` util: dmidecode, path: /sbin/dmidecode [ok] util: asrr-bioscontrol, path: /usr/sbin/asrr-bioscontrol [ok] util: dell-racadm, path: /opt/dell/srvadmin/bin/idracadm7 [err] - lstat /opt/dell/srvadmin/bin/idracadm7: no such file or directory: failed to run lstat on bin util: dnf, path: /usr/bin/microdnf [ok] util: dsu, path: dsu [err] - exec: "dsu": executable file not found in $PATH: failed to lookup bin path util: hdparm, path: /usr/sbin/hdparm [ok] util: lshw, path: /usr/sbin/lshw [ok] util: lsblk, path: /usr/bin/lsblk [ok] util: mlxup, path: /usr/sbin/mlxup [ok] util: msecli, path: /usr/bin/msecli [ok] util: mvcli, path: mvcli [err] - exec: "mvcli": executable file not found in $PATH: failed to lookup bin path util: nvme, path: /usr/sbin/nvme [ok] util: smartctl, path: /usr/sbin/smartctl [ok] util: smc-ipmicfg, path: /usr/sbin/smc-ipmicfg [ok] util: smc-sum, path: /usr/sbin/sum [ok] util: storecli, path: /opt/MegaRAID/storcli/storcli64 [ok] ```
pushed commit that updates all deps and Go to 1.19. |
splaspood
suggested changes
Nov 28, 2022
splaspood
approved these changes
Nov 29, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do
CheckDependencies()
method which can be used by a caller to validate utilities.