Skip to content

Commit

Permalink
Remove redundant device additions to docker_args
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpolidoro authored and tfoote committed Jan 6, 2021
1 parent e220f1c commit a759fe6
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/rocker/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,14 +252,6 @@ def run(self, command='', **kwargs):
return 1
docker_args = ''

devices = kwargs.get('devices', None)
if devices:
for device in devices:
if not os.path.exists(device):
print("ERROR device %s doesn't exist. Skipping" % device)
continue
docker_args += ' --device %s ' % device

for e in self.active_extensions:
docker_args += e.get_docker_args(self.cliargs)

Expand Down

0 comments on commit a759fe6

Please sign in to comment.