Skip to content

Commit c383ba1

Browse files
committed
refactor(controller): remove duplicate run() method
1 parent 0818b79 commit c383ba1

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

controller/scheduler/coreos.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -183,17 +183,6 @@ def run(self, name, image, command):
183183
rc = p.wait()
184184
return rc, p.stdout.read()
185185

186-
def run(self, name, image, command):
187-
"""
188-
Run a one-off command
189-
"""
190-
print 'Running {name}'.format(**locals())
191-
output = subprocess.PIPE
192-
p = subprocess.Popen('fleetrun.sh {command}'.format(**locals()), shell=True, env=self.env,
193-
stdout=output, stderr=subprocess.STDOUT)
194-
rc = p.wait()
195-
return rc, p.stdout.read()
196-
197186
def attach(self, name):
198187
"""
199188
Attach to a job's stdin, stdout and stderr

0 commit comments

Comments
 (0)