Skip to content
Snippets Groups Projects
Commit da70d1cc authored by Chris Hines's avatar Chris Hines
Browse files

totalseconds

parent dab66e4d
No related branches found
No related tags found
4 merge requests!77Revert "disable agressive kill and restart",!35Dev,!24Test,!22Dev
Pipeline #10301 passed
......@@ -61,7 +61,7 @@ class SSHSession:
delta = endtime - datetime.datetime.now() # I *think* the output of ssh-keygen -L is in the current timezone even though I assume the certs validity is in UTC
env = os.environ.copy()
env['SSH_AUTH_SOCK'] = self.socket
cmd = [self.sshadd,'-t',delta.totalseconds]
cmd = [self.sshadd,'-t',int(delta.total_seconds())]
cmd.append(keyname)
p = subprocess.Popen(cmd,stdout=subprocess.PIPE,stderr=subprocess.PIPE,env=env)
(stdout,stderr) = p.communicate()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment