Consistently yield tuples of variable_name and variable

This commit is contained in:
Peter Bašista 2018-02-15 15:27:10 +01:00
parent 48dba2c576
commit 821f14e84b

View file

@ -66,7 +66,7 @@ class ServerVariablesGenerator(object):
variables_deref = self.dereferencer.dereference(variables_spec)
if not variables_deref:
return [Server('/'), ]
return
for variable_name, variable_spec in iteritems(variables_deref):
default = variable_spec['default']