From 1f272cc6def288a5a1e9521d1301e9a62c2becaa Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Wed, 10 Jul 2024 14:33:56 +1000 Subject: [PATCH] tasks.py: switch to glob for update-sops-files supported for updatekeys since 3.9.0 --- tasks.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/tasks.py b/tasks.py index 113dceb..9ae5301 100644 --- a/tasks.py +++ b/tasks.py @@ -63,16 +63,9 @@ def update_agenix_files(c: Any) -> None: @task def update_sops_files(c: Any) -> None: """ - Update all sops yaml and json files according to .sops.yaml rules + Update all sops yaml files according to .sops.yaml rules """ - c.run( - """ -find . \ - -type f \ - \( -iname '*.enc.json' -o -iname 'secrets.yaml' \) \ - -exec sops updatekeys --yes {} \; -""" - ) + c.run("shopt -s globstar && sops updatekeys --yes **/secrets.yaml") @task