From 7a3f9384cfa14ad9e2af23c75bc7e4a561a674ba Mon Sep 17 00:00:00 2001 From: sminux Date: Thu, 27 Jun 2024 22:30:13 +0300 Subject: [PATCH] Fix simmilar branches (#83497) Identical branches in conditional node: 'elif name != permanent_hostname' and 'else'. First bruch is not nessesary Co-authored-by: mar.s --- lib/ansible/modules/hostname.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/ansible/modules/hostname.py b/lib/ansible/modules/hostname.py index 681d63c508e..7fe04ad82d8 100644 --- a/lib/ansible/modules/hostname.py +++ b/lib/ansible/modules/hostname.py @@ -886,8 +886,6 @@ def main(): if name != current_hostname: name_before = current_hostname - elif name != permanent_hostname: - name_before = permanent_hostname else: name_before = permanent_hostname