diff --git a/openwisp_network_topology/integrations/device/base/models.py b/openwisp_network_topology/integrations/device/base/models.py index dc4dc7ea..34fec000 100644 --- a/openwisp_network_topology/integrations/device/base/models.py +++ b/openwisp_network_topology/integrations/device/base/models.py @@ -142,9 +142,7 @@ def auto_create_zerotier(cls, node): return Device = load_model('config', 'Device') - device_filter = models.Q( - config__vpnclient__zt_identity_secret__startswith=member_id - ) + device_filter = models.Q(config__vpnclient__secret__startswith=member_id) if node.organization_id: device_filter &= models.Q(organization_id=node.organization_id) device = (