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