mirror of
https://github.com/r4sas/py-i2phosts
synced 2025-02-02 09:55:52 +00:00
py-i2phosts-injector: add trailing newline where needed
This commit is contained in:
parent
8bef1fd666
commit
3d7433f44b
@ -87,14 +87,14 @@ for line in f:
|
|||||||
h = i2phost.objects.get(name=hostname)
|
h = i2phost.objects.get(name=hostname)
|
||||||
except i2phost.DoesNotExist:
|
except i2phost.DoesNotExist:
|
||||||
if not args.quiet:
|
if not args.quiet:
|
||||||
sys.stdout.write('Adding %s' % hostname)
|
sys.stdout.write('Adding %s\n' % hostname)
|
||||||
host = i2phost(name=hostname, b64hash=base64,
|
host = i2phost(name=hostname, b64hash=base64,
|
||||||
description=args.description,
|
description=args.description,
|
||||||
activated=False, external=True, approved=approved)
|
activated=False, external=True, approved=approved)
|
||||||
host.save()
|
host.save()
|
||||||
else:
|
else:
|
||||||
if not args.supress:
|
if not args.supress:
|
||||||
sys.stdout.write('Host %s already exists' % hostname)
|
sys.stdout.write('Host %s already exists\n' % hostname)
|
||||||
if h.b64hash != base64:
|
if h.b64hash != base64:
|
||||||
sys.stdout.write('Key conflict for host: %s' % hostname)
|
sys.stdout.write('Key conflict for host: %s\n' % hostname)
|
||||||
f.close()
|
f.close()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user