Skip to content

iSrvPgm lib option doesn't work #12

@kadler

Description

@kadler

Original report by Kevin Adler (Bitbucket: kadler, GitHub: kadler).


#!python

from itoolkit import *
itool = iToolKit()
itool.add(iSrvPgm('test','TEST','test', iopt={'lib': 'MYLIB'}))
print(itool.xml_in())

gives

#!xml

<?xml version='1.0'?>
<xmlservice><pgm error="fast" func="test" name="TEST" var="test"/></xmlservice>

The problem is here:

#!python

    def __init__(self, ikey, iname, ifunc, iopt={}):
        # parent class
        iPgm.__init__(self, ikey, iname, {'func': ifunc})

iopt is completely ignored

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions