diff --git a/lib/rucio/common/utils.py b/lib/rucio/common/utils.py index 1464eaabdc..0102d17b0e 100644 --- a/lib/rucio/common/utils.py +++ b/lib/rucio/common/utils.py @@ -1279,8 +1279,7 @@ def ssh_sign(private_key, message): :param message: The message to sign as a string. :return: Base64 encoded signature as a string. """ - if isinstance(message, str): - message = message.encode() + message = message.encode() if not EXTRA_MODULES['paramiko']: raise MissingModuleException('The paramiko module is not installed or faulty.') sio_private_key = StringIO(private_key)