diff options
Diffstat (limited to 'env/files/getip.py')
-rwxr-xr-x | env/files/getip.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/env/files/getip.py b/env/files/getip.py deleted file mode 100755 index a8b326d..0000000 --- a/env/files/getip.py +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/python3 - -import json -import sys - - -leases = sys.argv[1] -hostname = sys.argv[2] -o = json.load(open(leases)) - -for h in o: - if h["hostname"] == hostname: - print(h["ip-address"]) |