From 913c0f75662dc1ba0359479fce5054fed07fd0ac Mon Sep 17 00:00:00 2001 From: piterpunk Date: Thu, 20 May 2021 20:30:10 -0300 Subject: [PATCH] Removed an unused assignment in file.patch --- changelog/57204.fixed | 1 + salt/states/file.py | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) create mode 100644 changelog/57204.fixed diff --git a/changelog/57204.fixed b/changelog/57204.fixed new file mode 100644 index 000000000000..038b66428523 --- /dev/null +++ b/changelog/57204.fixed @@ -0,0 +1 @@ +Removed an unused assignment in file.patch diff --git a/salt/states/file.py b/salt/states/file.py index d41895e15158..bce54092a0f6 100644 --- a/salt/states/file.py +++ b/salt/states/file.py @@ -7165,8 +7165,6 @@ def patch( ) return ret - options = sanitized_options - try: source_match = __salt__["file.source_list"](source, source_hash, __env__)[0] except CommandExecutionError as exc: