Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bjankiewicz authored and potiuk committed Jul 16, 2024
1 parent 5485cf2 commit 136cfea
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions airflow/cli/commands/rotate_fernet_key_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,13 @@ def rotate_fernet_key(args):
with create_session() as session:
with session.begin(): # Start a single transaction
rotate_method(
session, Connection, Connection.is_encrypted | Connection.is_extra_encrypted, batch_size
session,
Connection,
filter_condition=Connection.is_encrypted | Connection.is_extra_encrypted,
batch_size=batch_size,
)
rotate_method(session, Variable, Variable.is_encrypted, batch_size)
rotate_method(session, Trigger, batch_size)
rotate_method(session, Variable, filter_condition=Variable.is_encrypted, batch_size=batch_size)
rotate_method(session, Trigger, filter_condition=None, batch_size=batch_size)


def rotate_items_in_batches_v1(session, model_class, filter_condition=None, batch_size=100):
Expand Down

0 comments on commit 136cfea

Please sign in to comment.