fix check of signature_key type (#6341)

This commit is contained in:
Frédéric Péters 2015-01-24 16:15:18 +01:00
parent 229e6e18a8
commit a30c517956
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ class Renderer(template.TemplateRenderer):
yield 'unknown auth_mech {0!r}'.format(source['auth_mech'])
if source['auth_mech'].startswith('hmac-') \
and ('signature_key' not in source
or not isinstance(source['signature_key'])):
or not isinstance(source['signature_key'], basestring)):
yield 'missing signature_key string'
def get_sources(self, context):