mirror of
https://github.com/cwinfo/yggdrasil-map
synced 2024-11-09 16:00:27 +00:00
sendGraph: Use .format consistently
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
This commit is contained in:
parent
1f3f3e38dd
commit
3f10aee97f
@ -88,7 +88,7 @@ def connect():
|
|||||||
print('Connecting using default or ~/.cjdnsadmin credentials...')
|
print('Connecting using default or ~/.cjdnsadmin credentials...')
|
||||||
con = cjdns.connectWithAdminInfo()
|
con = cjdns.connectWithAdminInfo()
|
||||||
else:
|
else:
|
||||||
print('Connecting to port %d...' % (cjdns_port))
|
print('Connecting to port {:d}...'.format(cjdns_port))
|
||||||
con = cjdns.connect(cjdns_ip, cjdns_port, cjdns_password)
|
con = cjdns.connect(cjdns_ip, cjdns_port, cjdns_password)
|
||||||
|
|
||||||
print(admin_tools.whoami(con)['IP'])
|
print(admin_tools.whoami(con)['IP'])
|
||||||
@ -212,7 +212,7 @@ def send_graph(nodes, edges):
|
|||||||
if r.content == 'OK':
|
if r.content == 'OK':
|
||||||
print('Done!')
|
print('Done!')
|
||||||
else:
|
else:
|
||||||
print('Error: %s' % r.content)
|
print('Error: {:s}'.format(r.content))
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
Loading…
Reference in New Issue
Block a user