Bug 1182925

Summary: spacecmd do not display boolean values nicely: "bless( do{\(my $o = '0')}, 'Frontier::RPC2::Boolean' )" vs. "false"
Product: Red Hat Satellite 5 Reporter: Jan Hutař <jhutar>
Component: ClientAssignee: Michael Mráka <mmraka>
Status: CLOSED DUPLICATE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: low Docs Contact:
Priority: unspecified    
Version: 570   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-16 09:21:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1127217    

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 ***