l pbshook and l h as a pbsuser1 failed

Description

Steps followed:
1. Set pbshook to newly added events
Runas: root/administrator
Command:

qmgr -c 's pbshook PBS_ibwins event+=execjob_launch'
qmgr -c 's pbshook PBS_ibwins event+= exechost_startup”
qmgr -c 's pbshook PBS_ibwins event+= execjob_attach'

Expected:
Command executed successfully without any error.

2. Check events are set to pbshook
Runas: root/administrator
Command:
qmgr -c “list pbshook” | grep event

Expected:
All newly added events are set to pbshook

3. Provide manager permissions to pbsuser1
Runas: root/administrator
Command:
qmgr -c 'set server managers +=pbsuser01@*'

4. List pbshook using pbsuser1
Runas: pbsuser1
Command:
qmgr -c 'l pbshook'

Expected:
Below error would be thrown on console as only admin allow to access pbshooks.
'pbsuser1@x01 is unauthorized to access hooks data from server x01'

When I tried manually, I got expected error message at step 4 but command returned 0 instead 1 as exit status.

pbstest@x01:~> qmgr -c'l h'
pbstest@x01.pbspro.com is unauthorized to access hooks data from server x01
pbstest@x01:~> echo $?
0

Acceptance Criteria

None

Status

Assignee

Unassigned

Reporter

Former user

Severity

None

OS

None

Start Date

None

Pull Request URL

None

Components

Priority

Critical
Configure