diff options
-rw-r--r-- | ogcp/views.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ogcp/views.py b/ogcp/views.py index 899a3a9..8a7463a 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -608,6 +608,9 @@ def get_server_data_from_scopes(scopes, clients): ip_to_name = {ip: c['name'] for c in parse_scopes_from_tree(scopes, 'computer') for ip in c['ip']} for client in clients['clients']: + if not client['addr'] in ip_to_name: + continue + client['name'] = ip_to_name[client['addr']] server_id = client['server'].id if server_id not in servers_data: |