summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--connect.py4
-rw-r--r--security_scan.py18
2 files changed, 11 insertions, 11 deletions
diff --git a/connect.py b/connect.py
index 546e44d..f2d9dc5 100644
--- a/connect.py
+++ b/connect.py
@@ -232,9 +232,9 @@ class ConnectionManager:
logger.error("Socker Connection failed for "
"undercloud host: {0}".format(self.host))
sftp = remote_client.open_sftp()
- logger.info("Downloading \"{0}\"...".format(reportname))
+ logger.debug("Downloading \"{0}\"...".format(reportname))
sftp.get(reportfile, ('{0}/{1}'.format(dl_folder, reportname)))
- logger.info("Downloading \"{0}\"...".format(resultsname))
+ logger.debug("Downloading \"{0}\"...".format(resultsname))
sftp.get(reportfile, ('{0}/{1}'.format(dl_folder, resultsname)))
sftp.close()
transport.close()
diff --git a/security_scan.py b/security_scan.py
index 8511b44..6a0c562 100644
--- a/security_scan.py
+++ b/security_scan.py
@@ -74,23 +74,23 @@ def run_tests(host, nodetype):
port = cfgparse.get(nodetype, 'port')
connect.logger.info("Host: {0} Selected Profile: {1}".format(host,
nodetype))
- connect.logger.info("Checking internet for package installation...")
+ connect.logger.debug("Checking internet for package installation...")
if internet_check(host, nodetype):
- connect.logger.info("Internet Connection OK.")
- connect.logger.info("Creating temp file structure..")
+ connect.logger.debug("Internet Connection OK.")
+ connect.logger.debug("Creating temp file structure..")
createfiles(host, port, user, localkey)
- connect.logger.info("Installing OpenSCAP...")
+ connect.logger.debug("Installing OpenSCAP...")
install_pkg(host, port, user, localkey)
- connect.logger.info("Running scan...")
+ connect.logger.debug("Running scan...")
run_scanner(host, port, user, localkey, nodetype)
clean = cfgparse.get(nodetype, 'clean')
- connect.logger.info("Post installation tasks....")
+ connect.logger.debug("Post installation tasks....")
post_tasks(host, port, user, localkey, nodetype)
if clean:
- connect.logger.info("Cleaning down environment....")
- connect.logger.info("Removing OpenSCAP....")
+ connect.logger.debug("Cleaning down environment....")
+ connect.logger.debug("Removing OpenSCAP....")
removepkg(host, port, user, localkey, nodetype)
- connect.logger.info("Deleting tmp file and reports (remote)...")
+ connect.logger.debug("Deleting tmp file and reports (remote)...")
cleandir(host, port, user, localkey, nodetype)
else:
connect.logger.error("Internet timeout. Moving on to next node..")