Skip to content

Commit c002c63

Browse files
committed
chore: bump version, reuse vars when patching
1 parent d3e531a commit c002c63

File tree

3 files changed

+448
-618
lines changed

3 files changed

+448
-618
lines changed

plugins/strategy/patching.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def loaders_path():
2828

2929
class patch_version(ContextDecorator):
3030
ORIG_LINE = "ANSIBLE_VERSION_MAX = (2, 13)\n"
31-
PATCH_LINE = "ANSIBLE_VERSION_MAX = (2, 15)\n"
31+
PATCH_LINE = "ANSIBLE_VERSION_MAX = (2, 16)\n"
3232

3333
def __enter__(self):
3434
self.patched = False
@@ -47,8 +47,8 @@ def __enter__(self):
4747
with open(self.lp_orig) as source:
4848
with open(self.lp, "w") as dest:
4949
for line in source.readlines():
50-
if line == "ANSIBLE_VERSION_MAX = (2, 13)\n":
51-
line = "ANSIBLE_VERSION_MAX = (2, 15)\n"
50+
if line == ORIG_LINE:
51+
line = PATCH_LINE
5252
dest.write(line)
5353
return self
5454

0 commit comments

Comments
 (0)