-
Notifications
You must be signed in to change notification settings - Fork 44
DLPX-74854 Update /usr/bin/get-appliance-version to also report the h… #274
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
DLPX-74854 Update /usr/bin/get-appliance-version to also report the h… #274
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the hotfix-version field is completely separate from the current-version field, and the implementation of retrieving and parsing is independent, how would you feel about creating a new script (e.g. get-hotfix-version
) to retrieve the hotfix version?
I might be able to be convinced otherwise, but I sort of feel that the two versions are distinct enough, that perhaps using a separate script might be more appropriate. This might also make it a little more apparent when reading consumer logic, that we're getting the hotfix version; e.g. we'd see get-hotfix-version
rather than get-appliance-version -f
, which to me is easier to immediately see what "version" we're retrieving.
What do you think?
@prakashsurya I am open to a new script. I'll wait a little before proceeding to see if others have other ideas and opinions. |
e5a8c0e
to
2d1de9f
Compare
e165a57
to
631d619
Compare
3af6d40
to
1747766
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thank you.
1747766
to
1adb891
Compare
Pull request checklist
Please check if your PR fulfills the following requirements:
Test run
Pull request type
Please check the type of change your PR introduces:
What is the current behavior?
Current script does not report the hotfix version.
Issue Number: DLPX-74854
What is the new behavior?
Due to changes in delphix/appliance-build#507 and with ongoing work in hotfixes, the version is stored in a ZFS property. For the sake of consistency the hotfix version should be reported in this tool. Because we are not changing the Delphix version string, the hotfix version is not included in the version string, but is a separate value.
Does this introduce a breaking change?
Other information