fix check of signature_key type (#6341)
This commit is contained in:
parent
229e6e18a8
commit
a30c517956
|
@ -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):
|
||||
|
|
Reference in New Issue