Verified Commit e98aab55 authored by Huste, Tobias (FWCC) - 111645's avatar Huste, Tobias (FWCC) - 111645
Browse files

global: fix pydocstyle issues with version >=4.0.0

parent 5b52812e
Pipeline #13784 failed with stages
in 18 minutes and 23 seconds
......@@ -74,8 +74,8 @@ For some SFTP servers it might be necessary to overwrite the default functions
for e.g. key deployment. It can be configured by specifing the configuration
variable ``UPLOADBYURL_REMOTE_SERVERS``.
Example:
Example
^^^^^^^
.. code-block:: python
UPLOADBYURL_REMOTE_SERVERS = {
......
......@@ -225,6 +225,7 @@ class SSHKey(db.Model):
user_id(int): The id of the user the key belongs to.
remote_server_id(int): The id of the RemoteServer the SSHKey is
associated with.
"""
with db.session.begin_nested():
obj = cls.query.filter_by(
......@@ -242,6 +243,7 @@ class SSHKey(db.Model):
user_id(int): The id of the user the key belongs to.
remote_server_id(int): The id of the RemoteServer the SSHKey is
associated with.
"""
key = cls.query.filter_by(
user_id=user_id,
......@@ -262,6 +264,7 @@ class SSHKey(db.Model):
object.
valid_until(datetime.date): Date until the SSH Key should be
valid. Not used yet.
"""
key = cls.get(user_id, remote_server_id)
if not valid_until:
......
......@@ -305,6 +305,7 @@ def rebuild_private_keys(old_key):
Args:
old_key(str): The old SECRET_KEY value.
"""
current_app.logger.info('Rebuilding SSHKey.private_key...')
rebuild_encrypted_properties(old_key, SSHKey, ['private_key'])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment