tools/locate.py: fixed accidental paste and added shebang
This commit is contained in:
parent
c242799566
commit
9fd484efc2
1 changed files with 2 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue