Bug 886786

Summary: PRD33 - ovirt-engine-cli : show event -id accept strings instead of numeric values
Product: Red Hat Enterprise Virtualization Manager Reporter: Oded Ramraz <oramraz>
Component: ovirt-engine-cliAssignee: Ravi Nori <rnori>
Status: CLOSED CURRENTRELEASE QA Contact: Ilia Meerovich <iliam>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.1.0CC: aburden, acathrow, bazulay, ecohen, iheim, jkt, oramraz, Rhev-m-bugs
Target Milestone: ---Keywords: Improvement
Target Release: 3.3.0Flags: dyasny: Triaged+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: is3 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
: 976621 (view as bug list) Environment:
Last Closed: 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: 976621    

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