Bug 1182925 - spacecmd do not display boolean values nicely: "bless( do{\(my $o = '0')}, 'Frontier::RPC2::Boolean' )" vs. "false"
Summary: spacecmd do not display boolean values nicely: "bless( do{\(my $o = '0')}, 'F...
Keywords:
Status: CLOSED DUPLICATE of bug 1155995
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Client
Version: 570
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Michael Mráka
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: sat570-triage
TreeView+ depends on / blocked
 
Reported: 2015-01-16 08:46 UTC by Jan Hutař
Modified: 2015-01-16 09:21 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-01-16 09:21:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jan Hutař 2015-01-16 08:46:40 UTC
Description of problem:
spacecmd do not display boolean values nicely: it says "bless( do{\(my $o = '0')}, 'Frontier::RPC2::Boolean' )" and I would expect "false"


Version-Release number of selected component (if applicable):
Satellite-5.7.0-RHEL6-re20150108.2
spacecmd-2.3.0-2.el6sat.noarch


How reproducible:
always


Steps to Reproduce:
1. # spacewalk-api --server localhost --user=jhutar-bz825249-user --password=<password> user.getDetails  %session% "jhutar-bz825249-user"


Actual results:
# spacewalk-api --server localhost --user=jhutar-bz825249-user --password=<password> user.getDetails  %session% "jhutar-bz825249-user"
$result = {
            'first_names' => 'A',
            'last_login_date' => '1/16/15 9:41:29 AM CET',
            'org_name' => 'Red Hat SatTeam QA',
            'use_pam' => bless( do{\(my $o = '0')}, 'Frontier::RPC2::Boolean' ),
            'created_date' => '1/16/15 9:35:27 AM CET',
            'last_name' => 'A',
            'email' => 'root@localhost',
            'org_id' => '1',
            'read_only' => bless( do{\(my $o = '0')}, 'Frontier::RPC2::Boolean' ),
            'errata_notification' => bless( do{\(my $o = '1')}, 'Frontier::RPC2::Boolean' ),
            'first_name' => 'A',
            'enabled' => bless( do{\(my $o = '1')}, 'Frontier::RPC2::Boolean' ),
            'prefix' => ' '
          };


Expected results:
Boolean values should be expressed by some common way

Comment 1 Jan Hutař 2015-01-16 09:21:58 UTC

*** This bug has been marked as a duplicate of bug 1155995 ***


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