Fix another bug
diff --git a/xos/services/vpn/admin.py b/xos/services/vpn/admin.py
index eaeaf9b..469b843 100644
--- a/xos/services/vpn/admin.py
+++ b/xos/services/vpn/admin.py
@@ -152,7 +152,7 @@
self.instance.clients_can_see_each_other)
self.fields['is_persistent'].initial = self.instance.is_persistent
self.initial['protocol'] = self.instance.protocol
- self.initial['failover_servers'] = VPNTenant.get_tenant_objects.all().filter(
+ self.initial['failover_servers'] = VPNTenant.get_tenant_objects().filter(
pk__in=self.instance.failover_server_ids)
self.fields['failover_servers'].queryset = (
VPNTenant.get_tenant_objects().exclude(pk=self.instance.pk))
diff --git a/xos/synchronizers/vpn/steps/sync_vpntenant.py b/xos/synchronizers/vpn/steps/sync_vpntenant.py
index 58a9287..f1861dc 100644
--- a/xos/synchronizers/vpn/steps/sync_vpntenant.py
+++ b/xos/synchronizers/vpn/steps/sync_vpntenant.py
@@ -18,9 +18,6 @@
template_name = "sync_vpntenant.yaml"
service_key_name = "/opt/xos/synchronizers/vpn/vpn_private_key"
- def __init__(self, *args, **kwargs):
- super(SyncVPNTenant, self).__init__(*args, **kwargs)
-
def fetch_pending(self, deleted):
if (not deleted):
objs = VPNTenant.get_tenant_objects().filter(