diff --git a/platformio/util.py b/platformio/util.py index df5d6c94..ce763969 100644 --- a/platformio/util.py +++ b/platformio/util.py @@ -477,14 +477,14 @@ def _get_api_result( data=data, headers=headers, auth=auth, - verify=disable_ssl_check) + verify=not disable_ssl_check) else: r = _api_request_session().get( url, params=params, headers=headers, auth=auth, - verify=disable_ssl_check) + verify=not disable_ssl_check) result = r.json() r.raise_for_status() except requests.exceptions.HTTPError as e: