1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix useless comparaison between 2 constants (#45524)

Found with https://lgtm.com
This commit is contained in:
Michael Scherer 2018-09-12 01:37:50 +02:00 committed by Tim Rupp
parent 197059b4a2
commit 004621ef8e

View file

@ -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']: