Closed arossert closed 2 years ago
@kshivakumar @dgzlopes This change is a bit bigger than I initially intended, if you have other ideas for implementation I will be happy to make the changes
@kshivakumar @dgzlopes Seems like I have the same issue on Windows machines, can you please review this change? 🙏
Currently I'm using this workaround
import aiohttp
from functools import partialmethod
aiohttp.ClientResponse.json = partialmethod(aiohttp.ClientResponse.json, content_type=None)
@kshivakumar Thanks for reviewing, I was conflicted if doing this by converting the vendor_file
to a iterable is better design 😃
If you think it is better I can make the change.
I can also add the typo fix (#19) to this one
@kshivakumar @dgzlopes can you please review this one?
@dgzlopes Please, I need this fix for my project, can you review and merge 🙏
Thanks for merging 💪🏻
To improve AWS detection I did 2 things
response.json(content_type=None)
- in some cases the metadata API returns Content-Type header oftext/plain
which cause this function to fail unless you tell it to ignore it./sys/class/dmi/id/bios_vendor
file - added the ability to callcheck_vendor_file
multiple time in the sameProvider
class.