From c54e9d25e7af26e143b1106376ba339304f9f96b Mon Sep 17 00:00:00 2001 From: Luc Provoost Date: Thu, 2 Feb 2023 11:09:45 +0100 Subject: Remove key file check A check on the name of the ssh key file for user rapid has been removed. We are now just using the name of the key file as it shows in the rapid.env file. In the past, the file name was always replaced by a hardcoded name for the rapid user. Signed-off-by: Luc Provoost Change-Id: Ie2219b33c75c54e937182e9307e16f290c82513e --- VNFs/DPPD-PROX/helper-scripts/rapid/rapid_parser.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'VNFs') diff --git a/VNFs/DPPD-PROX/helper-scripts/rapid/rapid_parser.py b/VNFs/DPPD-PROX/helper-scripts/rapid/rapid_parser.py index 1a82671a..aa7d01a1 100644 --- a/VNFs/DPPD-PROX/helper-scripts/rapid/rapid_parser.py +++ b/VNFs/DPPD-PROX/helper-scripts/rapid/rapid_parser.py @@ -63,12 +63,6 @@ class RapidConfigParser(object): test_params['user'] = config.get('ssh', 'user') if config.has_option('ssh', 'key'): test_params['key'] = config.get('ssh', 'key') - if test_params['user'] in ['rapid']: - if test_params['key'] != 'rapid_rsa_key': - RapidLog.debug(("Key file {} for user {} overruled by key file:" - " rapid_rsa_key").format(test_params['key'], - test_params['user'])) - test_params['key'] = 'rapid_rsa_key' else: test_params['key'] = None if config.has_option('ssh', 'password'): -- cgit 1.2.3-korg