Suppress InsecureRequestWarning: Unverified HTTPS request is being made in Python2.6

前端 未结 9 1027
南方客
南方客 2020-11-27 09:06

I am writing scripts in Python2.6 with use of pyVmomi and while using one of the connection methods:

service_instance = connect.SmartConnect(host=args.ip,
           


        
9条回答
  •  醉梦人生
    2020-11-27 09:39

    For impatient, a quick way to disable python unverified HTTPS warning:

    export PYTHONWARNINGS="ignore:Unverified HTTPS request"
    

提交回复
热议问题