Skip to content

Commit

Permalink
get_job test is passing for docker engine
Browse files Browse the repository at this point in the history
  • Loading branch information
avirshup committed Jun 11, 2018
1 parent d3eec1c commit 7216593
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pyccc/engines/dockerengine.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def get_job(self, jobid):
job = Job(engine=self)
job.jobid = job.rundata.containerid = jobid
try:
jobdata = self.client.containers.inspect_container(job.jobid)
jobdata = self.client.inspect_container(job.jobid)
except docker.errors.NotFound:
raise exceptions.JobNotFound(
'The daemon could not find containter "%s"' % job.jobid)
Expand All @@ -103,8 +103,9 @@ def get_job(self, jobid):
cmd = ' '.join(shlex.quote(x) for x in cmd)

job.command = cmd
job.env = jobdata['Env']
job.workingdir = jobdata['WorkingDir']
job.env = jobdata['Config']['Env']
job.workingdir = jobdata['Config']['WorkingDir']
job.rundata.container = jobdata

return job

Expand Down

0 comments on commit 7216593

Please sign in to comment.