#!/usr/bin/python

from pythonlsf import lsf

def query_queue(queue_name):
    """
    "query queue info"
    """

    if lsf.lsb_init("test") > 0:
        return -1;

    intp_num_queues = lsf.new_intp();
    lsf.intp_assign(intp_num_queues, 1);
    strArr = lsf.new_stringArray(1);
    #print lsf.intp_value(intp_num_queues);
    lsf.stringArray_setitem(strArr, 0, queue_name);
    #print lsf.stringArray_getitem(strArr, 0);
    queueInfo = lsf.lsb_queueinfo(strArr,intp_num_queues,None,None,0);
    if queueInfo != None:
        print 'queueInfo is not null';
    else:
        print 'queueInfo is null'
        return -1;

    print 'queue name = %s' % queueInfo.queue;
    print 'queue description = %s' % queueInfo.description; 

    return 0;

if __name__ == '__main__':
    print("LSF Clustername is :", lsf.ls_getclustername())
    print(query_queue("normal"))

@@ -744,16 +744,398 @@
 urn 0;%0A%0A
+def printQueueInfo():%0A    if lsf.lsb_init(%22test%22) %3E 0:%0A        return -1;%0A%0A    strArr = lsf.new_stringArray(2); //array length is 2%0A    lsf.stringArray_setitem(strArr, 0, %22normal%22);%0A    lsf.stringArray_setitem(strArr, 1, %22short%22);%0A%0A    for info in lsf.get_queue_info_by_name(strArr, 2):%0A        print info.queue;%0A        print info.description;%0A        print ''%0A%0A    return 0;%0A    %0A
 if __nam
@@ -1245,8 +1245,29 @@
 rmal%22))%0A
+    printQueueInfo()%0A

Update queue_info.py