-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Exception: unsupported operand type(s) for -: 'str' and 'int' #34382
Comments
@amontalban looks like I am able to replicate this issue but only on freebsd10. I was able ot get it to work on centos7. Here is the git bisect:
When I do te following it works:
ping @jhujhiti is there a reason you left out calling _bsd_cpudata on freebsd? |
Looks like a mistake. Sorry about that. My only comment on your patch is that it seems like it should be called unconditionally (ie., after the except block). |
@jhujhiti great thanks! i'll work on a PR today 👍 |
@amontalban and @jhujhiti Can you guys give the fix from @Ch3LL a try and let us know if this issue is resolved for you? |
Looks like #33608 is the same issue. There is a pull request in #34771 and we are carrying that version of the patch in FreeBSD as of freebsd/freebsd-ports@0214514. |
@junovitch Yeah, you're right. Those are duplicate issues. The fix in #34656 will be included in the upcoming 2016.3.2 release. |
salt'grains.get' in Jinja seems to return str instead of int
However the code seems to be right according to commit c452481 that ensures the result of num_cpus is an integer.
Setup
State:
Error log
Versions Report
The text was updated successfully, but these errors were encountered: