Skip to content

Commit

Permalink
[Automated Commit] Format Codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
mlcommons-bot committed Dec 29, 2024
1 parent 327b825 commit 26161e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion automation/script/module_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1903,7 +1903,7 @@ def docker(i):
noregenerate_docker_file = i.get('docker_noregenerate', False)
norecreate_docker_image = i.get('docker_norecreate', True)
recreate_docker_image = i.get('docker_recreate', False)
if recreate_docker_image:#force recreate
if recreate_docker_image: # force recreate
norecreate_docker_image = False

if i.get('docker_skip_build', False):
Expand Down
3 changes: 2 additions & 1 deletion script/build-dockerfile/customize.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,8 @@ def preprocess(i):
docker_user = get_value(env, config, 'USER', 'CM_DOCKER_USER')
docker_group = get_value(env, config, 'GROUP', 'CM_DOCKER_GROUP')

if docker_user and str(env.get('CM_DOCKER_USE_DEFAULT_USER', '')).lower() not in ["yes", "1", "true"]:
if docker_user and str(env.get('CM_DOCKER_USE_DEFAULT_USER', '')).lower() not in [
"yes", "1", "true"]:

f.write('RUN groupadd -g $GID -o ' + docker_group + EOL)

Expand Down

0 comments on commit 26161e9

Please sign in to comment.