Upgrading to GitLab 11.11.0.

Commit 75ff511b authored by Simo Sorce's avatar Simo Sorce Committed by Simo Sorce

Fix potential undefined usage spotted by lgtm.com

Signed-off-by: 's avatarSimo Sorce <simo@redhat.com>
parent 4d92702e
......@@ -210,6 +210,7 @@ class JWK(object):
def generate(cls, **kwargs):
obj = cls()
kty = None
kty = kwargs['kty']
gen = getattr(obj, '_generate_%s' % kty)
......@@ -219,6 +220,7 @@ class JWK(object):
return obj
def generate_key(self, **params):
kty = None
kty = params.pop('generate')
gen = getattr(self, '_generate_%s' % kty)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment