From 004621ef8e2f9da82e0ed2be016e874230d93a0d Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Wed, 12 Sep 2018 01:37:50 +0200 Subject: [PATCH] Fix useless comparaison between 2 constants (#45524) Found with https://lgtm.com --- lib/ansible/modules/network/f5/bigip_device_facts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/network/f5/bigip_device_facts.py b/lib/ansible/modules/network/f5/bigip_device_facts.py index d1685fb865c..7339a1df7b3 100644 --- a/lib/ansible/modules/network/f5/bigip_device_facts.py +++ b/lib/ansible/modules/network/f5/bigip_device_facts.py @@ -12438,9 +12438,9 @@ class VirtualServersParameters(BaseParameters): result = [] for item in self._values['profiles']['items']: context = item['context'] - if 'context' == 'serverside': + if context == 'serverside': context = 'server-side' - elif 'context' == 'clientside': + elif context == 'clientside': context = 'client-side' name = item['name'] if context in ['all', 'server-side', 'client-side']: