mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +00:00
Using new DO token for ips
This commit is contained in:
parent
4ff80e0141
commit
e28e54f3fd
1 changed files with 1 additions and 1 deletions
|
@ -500,7 +500,7 @@ def save_story(request, token=None):
|
|||
|
||||
def ip_addresses(request):
|
||||
import digitalocean
|
||||
doapi = digitalocean.Manager(token=settings.DO_TOKEN_FABRIC)
|
||||
doapi = digitalocean.Manager(token=settings.DO_TOKEN_API_IPADDRESSES)
|
||||
droplets = doapi.get_all_droplets()
|
||||
addresses = '\n'.join([d.ip_address for d in droplets])
|
||||
return HttpResponse(addresses, content_type='text/plain')
|
||||
|
|
Loading…
Add table
Reference in a new issue