From 69603045a557096c2a2dcdf89147a1e0b1db4d58 Mon Sep 17 00:00:00 2001 From: "Ian H. Pittwood" Date: Fri, 10 Jan 2020 12:53:04 -0600 Subject: [PATCH] Default site commands to --no-decrypt The default of pre-command decrypts (--decrypt) being enabled is causing some non-intuitive behavior in what files are being overwritten by the decrypt action. This change will disable pre-command decrypt by default (--no-decrypt) until pre-command decrypt is updated. Change-Id: Iadad0f211fbc549f0f998266666e8ad784e6b8b1 --- pegleg/cli/commands.py | 2 +- pegleg/pegleg_main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pegleg/cli/commands.py b/pegleg/cli/commands.py index 34553e50..7bec2577 100644 --- a/pegleg/cli/commands.py +++ b/pegleg/cli/commands.py @@ -101,7 +101,7 @@ def lint_repo(*, fail_on_missing_sub_src, exclude_lint, warn_lint): @click.option( '--decrypt/--no-decrypt', 'decrypt_repos', - default=True, + default=False, help='Automatically attempts to decrypt repositories before executing ' 'the command. Decryption will happen after repositories are copied to ' 'the temporary directory created by pegleg or the user specified ' diff --git a/pegleg/pegleg_main.py b/pegleg/pegleg_main.py index eff9f6a8..5edc151f 100644 --- a/pegleg/pegleg_main.py +++ b/pegleg/pegleg_main.py @@ -50,7 +50,7 @@ def run_config( repo_username, extra_repositories, run_umask=True, - decrypt_repos=True): + decrypt_repos=False): """Initializes pegleg configuration data :param site_repository: path or URL for site repository