Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
refactor(controller): remove duplicate run() method
Browse files Browse the repository at this point in the history
  • Loading branch information
mboersma committed May 2, 2014
1 parent 0818b79 commit c383ba1
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions controller/scheduler/coreos.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,17 +183,6 @@ def run(self, name, image, command):
rc = p.wait()
return rc, p.stdout.read()

def run(self, name, image, command):
"""
Run a one-off command
"""
print 'Running {name}'.format(**locals())
output = subprocess.PIPE
p = subprocess.Popen('fleetrun.sh {command}'.format(**locals()), shell=True, env=self.env,
stdout=output, stderr=subprocess.STDOUT)
rc = p.wait()
return rc, p.stdout.read()

def attach(self, name):
"""
Attach to a job's stdin, stdout and stderr
Expand Down

0 comments on commit c383ba1

Please sign in to comment.