-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Correct version comparisons to ensure proper fact evaluation #4645
Conversation
When a user supplies the openshift_image_tag inventory fact as '3.5', the evaluation of `version >= LooseVersion('3.5.0')` will return False. Changing the evaluation against only the X.X release will properly return True.
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.
LGTM
aos-ci-test |
[test] |
Flake openshift/origin#13067 oc new-app [It] should succeed with a --name of 58 characters |
Evaluated for openshift ansible test up to 6d4c84b |
continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_openshift_ansible/304/) (Base Commit: 2c03eec) (PR Branch Commit: 6d4c84b) |
When a user supplies the openshift_image_tag inventory fact as '3.5',
the evaluation of
version >= LooseVersion('3.5.0')
will return False.Changing the evaluation against only the X.X release will properly
return True.
Bug https://bugzilla.redhat.com/show_bug.cgi?id=1466762