RedHatSatellite / ballista

Modular and easily extendable tool to manipulate Katello/Satellite 6
GNU General Public License v3.0
16 stars 10 forks source link

HTTPS errors #15

Closed gearboxscott closed 6 years ago

gearboxscott commented 6 years ago

import urllib3 needs to be added and urllib3.disable_warnings() need to be added after the import declaration section.

#

import argparse
import sys
import logging
import urllib3
from ConfigParser import ConfigParser, NoSectionError, NoOptionError
from getpass import getpass
from katlibs import available_modules
from katlibs.main.katello_helpers import KatelloConnection

urllib3.disable_warnings()

logger = logging.getLogger()
logger.setLevel(logging.INFO)

This will remove the numerous errors:

/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
yhekma commented 6 years ago

Hey Scott,

Great to hear someone is still using this. Since I or Joey are not actively maintaining this project, could you please create a pull request with the desired changes?

Cheers! Yoram

Yoram On Tue, 1 May 2018 at 17:54, Scott Parker notifications@github.com wrote:

import urllib3 needs to be added and urllib3.disable_warnings() need to be added after the import declaration section.

#

import argparse import sys import logging import urllib3 from ConfigParser import ConfigParser, NoSectionError, NoOptionError from getpass import getpass from katlibs import available_modules from katlibs.main.katello_helpers import KatelloConnection

urllib3.disable_warnings()

logger = logging.getLogger() logger.setLevel(logging.INFO)

This will remove the error:

/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings InsecureRequestWarning)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/RedHatSatellite/ballista/issues/15, or mute the thread https://github.com/notifications/unsubscribe-auth/AApulwZHi0Z9Zaq6o0ynFye7pcFSp-3Wks5tuIVBgaJpZM4TuHaW .

--

Met vriendelijke groet, Yoram Hekma

yhekma commented 6 years ago

fixed in https://github.com/RedHatSatellite/ballista/commit/b91992f883ac366560eb93a0d9d25be2ca8ebb7c