Debug added

This commit is contained in:
Jakobus Schürz 2019-07-31 18:02:01 +02:00
parent d98c6cc974
commit 4dcd1f3d8c

View file

@ -137,6 +137,7 @@ class Main(app.App):
user = ssh_extract_user(pubkey) user = ssh_extract_user(pubkey)
if not re.search(r"\s", pubkey): if not re.search(r"\s", pubkey):
pubkey = None pubkey = None
logger.debug("pubkey: %s", pubkey)
if user is None: if user is None:
log.error('Cannot parse user from SSH public key.') log.error('Cannot parse user from SSH public key.')
sys.exit(1) sys.exit(1)