From 9fd484efc254db801183db5f6c7e25c0f78923f9 Mon Sep 17 00:00:00 2001 From: Jenny Danzmayr Date: Sat, 28 Dec 2019 18:56:47 +0100 Subject: [PATCH] tools/locate.py: fixed accidental paste and added shebang --- tools/locate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/locate.py b/tools/locate.py index 3a0af22d..955ce62d 100644 --- a/tools/locate.py +++ b/tools/locate.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python import argparse import json import os @@ -114,7 +115,7 @@ if __name__ == '__main__': location = locate(args.instance, interface=args.interface, sudo=args.sudo, secret=args.secret, api_secret=args.apisecret, location_timeout=args.timeout) - if location['location'] is None: + if location is None: # no location found if not args.quiet: print('no location found')