Skip to content

Commit 6980cb2

Browse files
improvements
1 parent 6642e80 commit 6980cb2

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

services/efs-guardian/src/simcore_service_efs_guardian/services/efs_manager_utils.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ async def remove_write_permissions_bash_async(path) -> None:
4242

4343
if process.returncode == 0:
4444
return
45-
else:
46-
msg = f"Command {' '.join(command)} failed with error code {process.returncode}: {stderr.decode()}"
47-
_logger.error(msg)
48-
raise RuntimeError(msg)
45+
msg = f"Command {' '.join(command)} failed with error code {process.returncode}: {stderr.decode()}"
46+
_logger.error(msg)
47+
raise RuntimeError(msg)

services/efs-guardian/tests/unit/test_efs_guardian_rpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ def app_environment(
3636

3737

3838
async def test_rpc_create_project_specific_data_dir(
39+
mocked_redis_server: None,
3940
rpc_client: RabbitMQRPCClient,
4041
faker: Faker,
41-
mocked_redis_server: None,
4242
app: FastAPI,
4343
):
4444
aws_efs_settings: AwsEfsSettings = app.state.settings.EFS_GUARDIAN_AWS_EFS_SETTINGS

0 commit comments

Comments
 (0)