check auf leerzeichen im pubkey

This commit is contained in:
Jakobus Schürz 2019-07-31 18:11:32 +02:00
parent ac1b52852f
commit 161308d25d

View file

@ -135,7 +135,7 @@ class Main(app.App):
log.info('Reading SSH public key...')
pubkey = read_ssh_pubkey()
user = ssh_extract_user(pubkey)
if not bool(re.search(r"\s", pubkey)):
if not " " in pubkey:
pubkey = None
log.debug("pubkey: %s", pubkey)
if user is None: