I tried multiple example but none of them returns something. I want to get the
first SD available, type=data and available > Required new disk size.
1)
storage_domain = instance.system_service.storage_domains_service.
list(search: "available >= #{(size * 2**30).to_i} AND
status=\"active\" AND type=\"data\"").first
2) Also tested:
storage_domain = instance.system_service.storage_domains_service.
list(search: "available >= #{(size * 2**30).to_i} AND
status=active AND type=data").first
3) Then, I decided to check with only 1 criteria
storage_domain = instance.system_service.storage_domains_service.
list(search: "type=data").first
But all of them returns nothing.
What I'm doing wrong?
_______________________________________________
Devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct:
https://www.ovirt.org/community/about/community-guidelines/
List Archives:
https://lists.ovirt.org/archives/list/[email protected]/message/SMQLOGUOBGAQSSVOEW5EOOQSZDJDAXUA/