check auf leerzeichen im pubkey
This commit is contained in:
parent
ac1b52852f
commit
161308d25d
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue