diff --git a/api/tacticalrmm/agents/models.py b/api/tacticalrmm/agents/models.py index 1e75f0bb..324edc68 100644 --- a/api/tacticalrmm/agents/models.py +++ b/api/tacticalrmm/agents/models.py @@ -153,10 +153,10 @@ class Agent(models.Model): if validators.ipv4(ip): ret.append(ip) - if len(ret) == 1: - return ret[0] - else: - return ", ".join(ret) + if len(ret) == 1: + return ret[0] + else: + return ", ".join(ret) except: return "error getting local ips"