Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iSrvPgm lib option doesn't work #12

Closed
kadler opened this issue Jan 11, 2018 · 1 comment
Closed

iSrvPgm lib option doesn't work #12

kadler opened this issue Jan 11, 2018 · 1 comment
Labels
bug Something isn't working

Comments

@kadler
Copy link
Member

kadler commented Jan 11, 2018

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

@kadler
Copy link
Member Author

kadler commented Jan 11, 2018

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


Fixed by pull request #2

@kadler kadler closed this as completed Jan 11, 2018
@kadler kadler added major bug Something isn't working and removed major labels Dec 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant