Fix linter error
This commit is contained in:
parent
ed81e36faf
commit
e3906043d7
@ -394,6 +394,7 @@ class LambdaFunction(BaseModel):
|
||||
env_vars.update(self.environment_vars)
|
||||
|
||||
container = output = exit_code = None
|
||||
log_config = docker.types.LogConfig(type=docker.types.LogConfig.types.JSON)
|
||||
with _DockerDataVolumeContext(self) as data_vol:
|
||||
try:
|
||||
run_kwargs = (
|
||||
@ -409,7 +410,7 @@ class LambdaFunction(BaseModel):
|
||||
volumes=["{}:/var/task".format(data_vol.name)],
|
||||
environment=env_vars,
|
||||
detach=True,
|
||||
log_config=docker.types.LogConfig(type=docker.types.LogConfig.types.JSON),
|
||||
log_config=log_config,
|
||||
**run_kwargs
|
||||
)
|
||||
finally:
|
||||
|
Loading…
Reference in New Issue
Block a user