คำถามติดแท็ก pyvmomi

9
ระงับ InsecureRequestWarning: การร้องขอ HTTPS ที่ไม่ผ่านการตรวจสอบกำลังทำใน Python2.6
ฉันกำลังเขียนสคริปต์ใน Python2.6 ด้วยการใช้pyVmomiและในขณะที่ใช้วิธีการเชื่อมต่ออย่างใดอย่างหนึ่ง: service_instance = connect.SmartConnect(host=args.ip, user=args.user, pwd=args.password) ฉันได้รับคำเตือนต่อไปนี้: /usr/lib/python2.6/site-packages/requests/packages/urllib3/connectionpool.py:734: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html InsecureRequestWarning) สิ่งที่น่าสนใจคือฉันไม่ได้ติดตั้ง urllib3 ด้วย pip (แต่มีใน/usr/lib/python2.6/site-packages/requests/packages/urllib3/ ) ฉันได้ลองตามที่แนะนำที่นี่ import urllib3 ... urllib3.disable_warnings() แต่นั่นไม่ได้เปลี่ยนแปลงอะไรเลย
โดยการใช้ไซต์ของเรา หมายความว่าคุณได้อ่านและทำความเข้าใจนโยบายคุกกี้และนโยบายความเป็นส่วนตัวของเราแล้ว
Licensed under cc by-sa 3.0 with attribution required.