VCDN-333: Node Statistics selected incorrect interface and accordingly COMON gets...
[myplc.git] / dns-config
index aaaa3f2..b2fa1e7 100755 (executable)
@@ -66,7 +66,9 @@ def main():
 
         if interface['hostname']:
             hostname = interface['hostname']
-        else:
+        else:      
+            if not interface['is_primary']:
+                continue
             hostname = nodes[interface['node_id']]['hostname']
 
         if hosts.has_key(interface['ip']):