Closed ghost closed 5 years ago
Thanks for the proposed fix!
Are you interested to do a pull request with this fix ?
https://help.github.com/en/articles/creating-a-pull-request
Otherwise we can take care of it
Let us know!
Hi Jeaubin,
Yes, good Idea. I will do a pull request for this fix.
Can I learn something more.
:-)
Hi, one stupid question regarding pull request: Which branch should I use to create the pull request? Thanks Marcel
Would the same problem exist if the PID field is empty ?
Hi Patrick, thats a good point! Im not a programmer, just a beginner, but when I look into the code, it looks for me, that for all,
it would happen, because the Regular expression does not match on an empty string, If I understand it correctly:
p2 = re.compile(r'\s*PID: +(?P<pid>[a-zA-Z0-9\/\-\s]+),'
' +VID: +(?P<vid>[a-zA-Z0-9\.\/\s]+),'
' +SN: +(?P<sn>[a-zA-Z0-9\/\s]+)$')
So probably we should change the: + with *
at least for description and probably SN?
Cheers Marcel
Hi,
Thats right;
You can create your own branch. Usually though you would fork the project, fix the code, and from the fork you can click on creating a new Pull request,
https://help.github.com/en/articles/creating-a-pull-request-from-a-fork
As we are getting ready for the release; we've done this fix and it will be part of the next official release (next week)
Thanks to both of you for finding it and proposing fix!
Aloha, The "show inventory" parser fails, if the description field is empty: CLI Output:
Parser output:
This fix helped: in: show_platform.py line 746:[\w-.\:\/\s,&] )\"$')`
' +DESCR: +\"(?P<descr>[\w\-\.\:\/\s,&]+)\"$')"
change the + with `' +DESCR: +\"(?PThen it works:
Im just learning programming and this is my first issue report in Github. So forgive me, if I missed anything Cheers Marcel