Cloud pollers (is_cloud_poller = true, organization_id = nil) were being blocked from polling devices because verify_device_organization was checking if the device's organization matched the agent's organization. Since cloud pollers don't belong to any organization (organization_id is nil), they should be allowed to poll devices from any organization. Changes: - verify_device_organization now allows access if organization_id is nil - This fixes "Device not in agent's organization" errors for cloud pollers Error before: Device b7e8dd99-0b19-496d-97ae-9f2601d16464 not in agent's organization |
||
|---|---|---|
| .. | ||
| mix/tasks | ||
| snmpkit | ||
| towerops | ||
| towerops_web | ||
| snmp_lib.ex | ||
| snmp_mgr.ex | ||
| snmpkit.ex | ||
| towerops.ex | ||
| towerops_web.ex | ||