Bug 886786 - PRD33 - ovirt-engine-cli : show event -id accept strings instead of numeric values
Summary: PRD33 - ovirt-engine-cli : show event -id accept strings instead of numeric ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-cli
Version: 3.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 3.3.0
Assignee: Ravi Nori
QA Contact: Ilia Meerovich
URL:
Whiteboard: infra
Depends On:
Blocks: 976621
TreeView+ depends on / blocked
 
Reported: 2012-12-13 07:33 UTC by Oded Ramraz
Modified: 2016-02-10 19:32 UTC (History)
8 users (show)

Fixed In Version: is3
Doc Type: Enhancement
Doc Text:
Clone Of:
: 976621 (view as bug list)
Environment:
Last Closed:
oVirt Team: Infra
Target Upstream Version:
Embargoed:
dyasny: Triaged+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 11982 0 None None None Never

Description Oded Ramraz 2012-12-13 07:33:12 UTC
Description of problem:

show event -id does not accept string instead of numeric value ( see additional information )

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

[RHEVM shell (connected)]# show event --id 1534

unknown error: cannot concatenate 'str' and 'int' objects

[RHEVM shell (connected)]# show event --id "1534"

id         : 1534
description: User admin@internal logged in.
code       : 30
severity   : normal
time       : 2012-12-13T09:27:03.784+02:00
user-id    : fdfc627c-d875-11e0-90f0-83df133b58cc

Comment 1 Michael Pasternak 2012-12-13 08:17:19 UTC
i would not call this a bug, see help for this command [1], id should be
of string type, but we can implement auto-boxing to strings.

[1]

[oVirt shell (connected)]# help show event 

USAGE
  
  - show <type>
      
  - show <type> <id> [object identifiers]
  
DESCRIPTION
  
  Shows an object by type 'event'. See 'help show' for generic
  help on showing objects.
  
ATTRIBUTE OPTIONS
  
  The following options are available for objects with type 'event':
  
    * [--id :string]
    * [--name: string]

Comment 2 Ilia Meerovich 2013-07-03 11:10:58 UTC
[RHEVM shell (connected)]# show event --id 60

id            : 60
description   : New Tag foo was created by admin@internal.
code          : 432
correlation_id: 3e4d4350
custom_id     : -1
flood_rate    : 30
origin        : oVirt
severity      : normal
time          : 2013-07-03 10:57:43.257000+03:00
user-id       : fdfc627c-d875-11e0-90f0-83df133b58cc

[RHEVM shell (connected)]# show event --id '60'

id            : 60
description   : New Tag foo was created by admin@internal.
code          : 432
correlation_id: 3e4d4350
custom_id     : -1
flood_rate    : 30
origin        : oVirt
severity      : normal
time          : 2013-07-03 10:57:43.257000+03:00
user-id       : fdfc627c-d875-11e0-90f0-83df133b58cc

Comment 3 Itamar Heim 2014-01-21 22:29:00 UTC
Closing - RHEV 3.3 Released

Comment 4 Itamar Heim 2014-01-21 22:29:01 UTC
Closing - RHEV 3.3 Released

Comment 5 Itamar Heim 2014-01-21 22:32:00 UTC
Closing - RHEV 3.3 Released


Note You need to log in before you can comment on or make changes to this bug.