Bug 890327
Summary: | ovirt-engine-sdk: return error if amount of fetched objects (by-name) in X.get() is > 1 | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Barak Dagan <bdagan> | |
Component: | ovirt-engine-sdk | Assignee: | Michael Pasternak <mpastern> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Barak Dagan <bdagan> | |
Severity: | medium | Docs Contact: | ||
Priority: | medium | |||
Version: | 3.2.0 | CC: | bazulay, dyasny, ecohen, iheim, mpastern, oramraz, pstehlik, Rhev-m-bugs, sgrinber, yeylon, ykaul | |
Target Milestone: | --- | Keywords: | Improvement | |
Target Release: | 3.2.0 | Flags: | dyasny:
Triaged+
|
|
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | infra | |||
Fixed In Version: | sf13-beta2 | Doc Type: | Enhancement | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 947383 (view as bug list) | Environment: | ||
Last Closed: | 2012-12-26 12:47:40 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: | ||||
Bug Depends On: | ||||
Bug Blocks: | 947085, 947383 |
Description
Barak Dagan
2012-12-26 12:33:43 UTC
this kind of behaviour is not supported, action invoked on a single object and not on the list of objects, providing wildcard name, will fetch first object answering on this constraint, what is by-design. I still think that this behavior is confusing , especially for someone who is familiar with BE search engine where "*" has different meaning. I would either perform the operation on multiple objects ( and turning this issue to be essential RFE ) or failing the action with proper error / invalid syntax. (In reply to comment #1) > this kind of behaviour is not supported, action invoked on a single object > and > not on the list of objects, > > providing wildcard name, will fetch first object answering on this > constraint, > what is by-design. (In reply to comment #2) > I still think that this behavior is confusing , especially for someone who > is familiar with BE search engine where "*" has different meaning. > I would either perform the operation on multiple objects ( and turning this > issue to be essential RFE ) or failing the action with proper error / > invalid syntax. > ok, i'm buying it, i will return error is amount of returned objects > 1. *** Bug 947383 has been marked as a duplicate of this bug. *** [RHEVM shell (connected)]# action host aqua-* activate unknown error: [ERROR]::Used query (name=aqua-*) produces ambiguous results. Verified sf14 3.2 has been released 3.2 has been released |