bug fix to docker images

This commit is contained in:
usmannasir
2019-03-05 18:39:46 +05:00
parent eff5a7c242
commit aa6756dd0c
2 changed files with 10 additions and 8 deletions

View File

@@ -695,7 +695,6 @@ class backupUtilities:
expectation.append("Permission denied")
command = "ssh -o StrictHostKeyChecking=no -p "+ port +" root@"+IPAddress+' "mkdir /root/.ssh || rm -f /root/.ssh/temp && rm -f /root/.ssh/authorized_temp && cp /root/.ssh/authorized_keys /root/.ssh/temp"'
logging.CyberCPLogFileWriter.writeToFile(command)
setupKeys = pexpect.spawn(command, timeout=3)
index = setupKeys.expect(expectation)