From 0d50d6d77341cac287f38bce13e3e60d469c8519 Mon Sep 17 00:00:00 2001 From: Philip Sakievich Date: Tue, 10 Sep 2024 06:50:05 -0600 Subject: [PATCH] Fix bugs in lock diff --- manager/manager_cmds/lock_diff.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manager/manager_cmds/lock_diff.py b/manager/manager_cmds/lock_diff.py index 4c512cec..3ed02f68 100644 --- a/manager/manager_cmds/lock_diff.py +++ b/manager/manager_cmds/lock_diff.py @@ -30,6 +30,7 @@ def setup_parser_args(subparser): "--skip-package-diffs", "-s", nargs="+", + default=[], help="packages to skip package hash diffs", required=False, ) @@ -104,7 +105,7 @@ def old_vs_new(old_dict, new_dict): diff_msg += "package hash change - Old: {} New: {}".format( old_spec.package_hash(), new_spec.package_hash() ) - if new_spec.name not in args.skip_package_diffs: + if spec.name not in args.skip_package_diffs: unacceptable_changes = True else: # something else must have changed in concretization that