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

ovirt_vm_info: add current_cd #144

Merged
merged 5 commits into from
Oct 12, 2020
Merged

ovirt_vm_info: add current_cd #144

merged 5 commits into from
Oct 12, 2020

Conversation

mnecas
Copy link
Member

@mnecas mnecas commented Oct 12, 2020

This PR adds usage of current_cd to the ovirt_vm_info.
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1885542

Potential outputs:
when VM does not have any current_cd

            "current_cd": {
                "href": "/ovirt-engine/api/vms/293e855c-4477-41d3-959b-47e39ee120e4/cdroms/00000000-0000-0000-0000-000000000000",
                "id": "00000000-0000-0000-0000-000000000000",
                "vm": {
                    "href": "/ovirt-engine/api/vms/293e855c-4477-41d3-959b-47e39ee120e4",
                    "id": "293e855c-4477-41d3-959b-47e39ee120e4"
                }
            },

when current_cd is disabled

            "current_cd": {},

when VM does have current_cd

            "current_cd": {
                "file": {
                    "id": "CentOS-8.2.2004-x86_64-minimal.iso"
                },
                "href": "/ovirt-engine/api/vms/52b02ec8-95ba-4f2f-b6bb-4de2fd283fa2/cdroms/00000000-0000-0000-0000-000000000000",
                "id": "00000000-0000-0000-0000-000000000000",
                "vm": {
                    "href": "/ovirt-engine/api/vms/52b02ec8-95ba-4f2f-b6bb-4de2fd283fa2",
                    "id": "52b02ec8-95ba-4f2f-b6bb-4de2fd283fa2"
                }
            },

Copy link
Member

@mwperina mwperina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@mnecas mnecas merged commit 1188e11 into oVirt:master Oct 12, 2020
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