diff --git a/library/ranger_hive_policies.py b/library/ranger_hive_policies.py index 835ddaa..97337d6 100644 --- a/library/ranger_hive_policies.py +++ b/library/ranger_hive_policies.py @@ -205,8 +205,8 @@ ''' -import warnings -from sets import Set +# import warnings +# from sets import Set HAS_REQUESTS = False try: @@ -256,8 +256,8 @@ def __init__(self, endpoint, username, password, verify): self.auth = HTTPKerberosAuth() else: self.auth = HTTPBasicAuth(self.username, self.password) - warnings.filterwarnings("ignore", ".*Unverified HTTPS.*") - warnings.filterwarnings("ignore", ".*Certificate has no `subjectAltName`.*") + # warnings.filterwarnings("ignore", ".*Unverified HTTPS.*") + # warnings.filterwarnings("ignore", ".*Certificate has no `subjectAltName`.*") def get(self, path): url = self.endpoint + "/" + path @@ -416,7 +416,7 @@ def diffList(left, right, path, result): # --------------------------------------------------------------------------------- -ALLOWED_MISSING_ON_RIGHT = Set([".version", ".policyType", ".guid"]) +ALLOWED_MISSING_ON_RIGHT = set([".version", ".policyType", ".guid"]) def isPolicyIdentical(old, new): result = digdiff(old, new)