# Global vars
INSTALLER_IP = os.getenv('INSTALLER_IP')
oscapbin = 'sudo /bin/oscap'
+functest_dir = '/home/opnfv/repos/functest/testcases/security_scan/'
# Apex Spefic var needed to query Undercloud
if os.getenv('OS_AUTH_URL') is None:
# Configure Nova Credentials
-com = 'sudo hiera admin_password'
+com = 'sudo /usr/bin/hiera admin_password'
setup = connect.SetUp(com)
keypass = setup.keystonepass()
auth = v2.Password(auth_url=OS_AUTH_URL,
def createfiles(host, port, user, localkey):
import connect
global tmpdir
- localpath = os.getcwd() + '/scripts/createfiles.py'
+ localpath = functest_dir + 'scripts/createfiles.py'
remotepath = '/tmp/createfiles.py'
com = 'python /tmp/createfiles.py'
connect = connect.ConnectionManager(host, port, user, localkey,