Commit 7901f934 authored by Morten Brekkevold's avatar Morten Brekkevold

rename function to something that sounds more correct

parent 7f034b36
......@@ -55,9 +55,9 @@ def main():
find_reverse_dns_mismatches(devices)
if not args.kind_only:
check_nav(devices,
api_url=args.api_url, api_token=args.api_token,
dry_run=args.dry_run)
update_nav(devices,
api_url=args.api_url, api_token=args.api_token,
dry_run=args.dry_run)
def parse_args():
......@@ -227,7 +227,7 @@ class NAVBox(dict):
return hash(self.id)
def check_nav(kind_devices, api_url, api_token, dry_run=False):
def update_nav(kind_devices, api_url, api_token, dry_run=False):
kind_by_ip = {ip: dev
for dev in kind_devices.values() for ip in dev.ipaddrs}
nav_api = NAVAPI(url=api_url, auth_token=api_token)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment