Block a user
getting os details with /api/os
Why this call again? There's already a call for create_post_data above, you need to modify that.
getting os details with /api/os
Also we should refrain from using f-string anywhere in the new code.
getting os details with /api/os
You also need to modify this line to use ID and VERSION_ID.
current_os = f"{os_info.get('NAME', 'Unknown')} {os_info.get('VERSION', '').strip()}".strip().lower()
skip device which doesn't have model number
getting os details with /api/os
We want to use ID
and VERSION_ID
instead of NAME
and VERSION
, then you don't need to lower()
that.
Test - pull 4 - branch only in remote, not local