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...') log.info('Reading SSH public key...')
pubkey = read_ssh_pubkey() pubkey = read_ssh_pubkey()
user = ssh_extract_user(pubkey) user = ssh_extract_user(pubkey)
if not bool(re.search(r"\s", pubkey)): if not " " in pubkey:
pubkey = None pubkey = None
log.debug("pubkey: %s", pubkey) log.debug("pubkey: %s", pubkey)
if user is None: if user is None: