Skip to content

Commit

Permalink
Remove unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
fauust committed Apr 25, 2024
1 parent d1fb5ef commit a120cfd
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,7 @@ def createWorker(
dockerfile_str = open("dockerfiles/" + dockerfile).read()
image_str = None
need_pull = False
if (
"rhel" in worker_type
and dockerfile_str is not None
and not "download" in dockerfile
):
dockerfile_str = dockerfile_str % (
private_config["private"]["rhel_sub"]["user"],
config["private"]["rhel_sub"]["password"],
)

worker_instance = worker.DockerLatentWorker(
name + worker_name_suffix,
None,
Expand Down Expand Up @@ -280,20 +272,6 @@ def nextBuild(bldr, requests):
return requests[0]


@defer.inlineCallbacks
def shell(command, worker, builder):
args = {
"command": command,
"logEnviron": False,
"workdir": "/srv/buildbot/worker",
"want_stdout": False,
"want_stderr": False,
}
cmd = RemoteCommand("shell", args, stdioLogName=None)
cmd.worker = worker
yield cmd.run(FakeStep(), worker.conn, builder.name)
return cmd.rc


def canStartBuild(builder, wfb, request):
worker = wfb.worker
Expand Down

0 comments on commit a120cfd

Please sign in to comment.