Bug 1658156
Summary: | tags property of Vm object returns empty list even though tags are assigned to the VM | ||
---|---|---|---|
Product: | [oVirt] ovirt-engine-sdk-python | Reporter: | Jan Zmeskal <jzmeskal> |
Component: | Core | Assignee: | Ondra Machacek <omachace> |
Status: | CLOSED NOTABUG | QA Contact: | Lukas Svaty <lsvaty> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | 4.2.8 | CC: | bugs, juan.hernandez |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-12-11 12:19:26 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | Infra | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Jan Zmeskal
2018-12-11 12:10:41 UTC
As you stated this is correct way to get it: vms_service = con.system_service().vms_service() vm_service = vms_service.vm_service(<my_vm_id>) tags_service = vm_service.tags_service() tags_service.list() The reason you see vm.tags as empty list is because it's a link and we don't fetch link by default, if you would like to fetch them in single API call, you can use follow_link feature as follows: my_vm = con.system_service().vms_service().list(search='name=<vm_name>', max=1, follow='tags')[0] |