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

openstack: avoid NPE when there's only an image attached #838

Merged
merged 1 commit into from
Mar 28, 2024

Conversation

bennyz
Copy link
Member

@bennyz bennyz commented Mar 28, 2024

backport #825

It's possible to not create a storage map when only an image is attached
to a VM, this will lead to an NPE later on

Signed-off-by: Benny Zlotnik <bzlotnik@redhat.com>

openstack: add storagemap

Signed-off-by: Benny Zlotnik <bzlotnik@redhat.com>

openstack: exclude glance storagemap from validation

Signed-off-by: Benny Zlotnik <bzlotnik@redhat.com>

openstack: add validation for glance source storage map

Signed-off-by: Benny Zlotnik <bzlotnik@redhat.com>

address comments

Signed-off-by: Benny Zlotnik <bzlotnik@redhat.com>

openstack: do not return an error in the validation

Signed-off-by: Benny Zlotnik <bzlotnik@redhat.com>

address comments

Signed-off-by: Benny Zlotnik <bzlotnik@redhat.com>
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@ahadas ahadas merged commit 4e7b135 into kubev2v:release-v2.6.0 Mar 28, 2024
6 checks passed
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

Successfully merging this pull request may close these issues.

2 participants