diff --git a/src/middlewared/middlewared/plugins/cloud_backup/init.py b/src/middlewared/middlewared/plugins/cloud_backup/init.py index 25d6676e45d0b..209e2f433fdc9 100644 --- a/src/middlewared/middlewared/plugins/cloud_backup/init.py +++ b/src/middlewared/middlewared/plugins/cloud_backup/init.py @@ -29,7 +29,8 @@ def ensure_initialized(self, cloud_backup): subprocess.run( restic_config.cmd + ["unlock"], env=restic_config.env, - text=True + capture_output=True, + text=True, ) if self.is_initialized(restic_config):