-
Notifications
You must be signed in to change notification settings - Fork 91
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
hosted_engine_setup: Detect hosted-engine-ha version using /usr/libexec/platform-python #573
Conversation
roles/hosted_engine_setup/tasks/create_target_vm/03_hosted_engine_final_tasks.yml
Outdated
Show resolved
Hide resolved
/ost he-basic-suite-master |
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.
Wouldn't it be more correct to use package facts to get a version of an installed package? For example:
https://github.com/oVirt/ovirt-engine/blob/master/packaging/ansible-runner-service-project/project/roles/ovirt-host-deploy-facts/tasks/host-os.yml#L11
https://github.com/oVirt/ovirt-engine/blob/master/packaging/ansible-runner-service-project/project/roles/ovirt-host-deploy-facts/tasks/host-os.yml#L31
or just use /usr/libexec/platform-python |
…thon Bug-Url: https://bugzilla.redhat.com/2114769 Signed-off-by: Asaf Rachmani <arachman@redhat.com>
Yes, you are right, I already tried that and the only con is that the log is larger and contains irrelevant data for this task. I change it to use |
/ost he-basic-suite-master |
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.
+1
Bug-Url: https://bugzilla.redhat.com/2114769
Signed-off-by: Asaf Rachmani arachman@redhat.com