Bug 461953 - Unable to get data from Job GetAd call
Summary: Unable to get data from Job GetAd call
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-qmf
Version: beta
Hardware: All
OS: Linux
medium
high
Target Milestone: ---
: ---
Assignee: Nuno Santos
QA Contact: Jeff Needle
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-09-11 16:31 UTC by Ernie
Modified: 2013-09-12 22:10 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-01-08 16:39:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Ernie 2008-09-11 16:31:12 UTC
Description of problem:
I'm unable to get the returned data from a GetAd call. 

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

How reproducible:
using the following python code:
    def gen_items(self, session, job):

        def completion(status, args):
            self.got_data = True

        ads = dict()
        model = self.app.model
        ret = job.GetAd(model.data, completion, ads)
        
        while not self.got_data:
            pass

The completion method gets called, but args is:
tuple: ('method', 'mrg2.lab.bos.redhat.com:5672', 3, 0, 'OK')


Steps to Reproduce:
1. Tested with latest svn cumin/mint code 
2. Connecting to broker at mrg2.lab.bos.redhat.com:5672
3. Select Grid tab
4. Select Main pool
5. Select Job with custom id 1.2
  
Actual results:
Job Ads are not returned to completion method

Expected results:
Job Ads should either be returned to completion method, or the dict that was passed to the GetAd function should be filled with the data. 

Additional info:

Comment 1 Nuno Santos 2008-09-16 15:14:10 UTC
The "args" identifier was being shadowed in this scope, it's fixed now at svn rev 2478.


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