Open michaeljs1990 opened 6 years ago
That looks like a valid fix, can you please send a PR? It was probably just missed as part of the python3 conversion.
Regarding the missing python3 packages, see if https://github.com/dell/libsmbios/commit/01b56546172fe568419af50a01edf19dc011d751 helps you.
Unfortunately my commit https://github.com/dell/libsmbios/commit/01b56546172fe568419af50a01edf19dc011d751 doesn't work on on the version of rpm in centos 7, so I'll have to revert it. http://rpm.org/user_doc/boolean_dependencies.html
Please send a PR for your other change.
Will do, sorry I am easily distracted :) i'll do my best to publish that tonight and also do a bit more digging into the python issue.
Just recently moved from centos6 to centos7 and ran into an issue with setting an asset tag on my server. I have a fix but wanted to see if this is just something specific to my setup vs an actual issue with the library.
Version Info:
After all of the above is installed on the server I get the following when trying to set the asset tag.
The function that this is failing in look like this.
Digging around I found that
ctypes.c_char_p
is expecting to be passed in bytes and not just a string which I verified was happening via a print statement. Changing the return line above to below fixes the issue and sets the asset tag properly.Other Notes:
Initially the rpm packages were a tad hard to install because I couldn't actually find any python3 packages for centos7 all I found was python34 and python36. This is more an issue with centos7 or just me being unable to find the proper packages but seems to be a common issue all around in centos from a few google searches. I ended up forcing the install with a
rpm --nodeps
since python3 is satisfied by python34 although rpm isn't smart enough to figure that out.