Skip to content

Commit

Permalink
remove ssl/tls nag
Browse files Browse the repository at this point in the history
  • Loading branch information
ngschmidt committed Jan 3, 2023
1 parent f2d8ba2 commit e85aaf4
Showing 3 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [03-Jan-2023] v0.2.8

### Changed

- Removed Nag for SSL/TLS validation warnings if validation is disabled

## [02-Jan-2023] v0.2.7

### Changed
3 changes: 3 additions & 0 deletions restify/RuminatingCogitation.py
Original file line number Diff line number Diff line change
@@ -140,6 +140,9 @@ def __init__(
self.cogitation_certvalidation = json_settings["settings"]["tls"][
"validation"
]
# Reduce spam by disabling the certificate validation nag spam
if self.cogitation_certvalidation is False:
requests.packages.urllib3.disable_warnings()
# Authentication Settings
self.cogitation_username = input_user
self.cogitation_password = input_pass
4 changes: 4 additions & 0 deletions vsphere_rest/deploy_clib_vm.py
Original file line number Diff line number Diff line change
@@ -7,6 +7,7 @@
# System Calls
import os
import sys
import requests

# Arguments Parsing
import argparse
@@ -71,6 +72,9 @@
json_payload = json.load(json_filehandle)
except Exception as e:
exit("Error Loading Payload File " + args.p + ": " + str(e))
for i in ["id", "name", "datastore", "folder", "cluster"]:
if json_payload[i] is False:
exit("Missing Key in payload: " + i)

# Get the API key and add it to the API interface object
cogitation_interface.add_http_header(

0 comments on commit e85aaf4

Please sign in to comment.