Skip to content
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

LB image will be selected wrongly if more records are related to openshift_lb = yes while creating images #254

Open
jinlings opened this issue Feb 1, 2021 · 0 comments

Comments

@jinlings
Copy link
Contributor

jinlings commented Feb 1, 2021

in CSC we support ZVM and KVM, so we will create at lease two type of images for it ,and if openshift_lb = yes in both images, then while creating LB, it will take the issue randomly,it will cause issue if we want to create ocp for zvm ,but the LB image is for kvm
current code
image := &model.Image{}
err = db.Where(“open_shift_lb = ?“, true).Take(image).Error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant