Revert "guard against bugs"
This reverts commit 5a4a50c5d406d3cfaddca2278d24e7f80371233b.
diff --git a/xos/synchronizers/vpn/steps/sync_vpntenant.py b/xos/synchronizers/vpn/steps/sync_vpntenant.py
index af12f63..01385b3 100644
--- a/xos/synchronizers/vpn/steps/sync_vpntenant.py
+++ b/xos/synchronizers/vpn/steps/sync_vpntenant.py
@@ -26,7 +26,7 @@
if (not os.path.isdir(tenant.pki_dir)):
VPNService.execute_easyrsa_command(
tenant.pki_dir, "init-pki")
- if (len(tenant.use_ca_form) > 0 and tenant.use_ca_from[0]):
+ if (tenant.use_ca_from[0]):
shutil.copy2(
tenant.use_ca_from[0].pki_dir + "/ca.crt",
tenant.pki_dir)
@@ -36,7 +36,7 @@
else:
VPNService.execute_easyrsa_command(
tenant.pki_dir, "--req-cn=XOS build-ca nopass")
- elif (len(tenant.use_ca_form) > 0 and tenant.use_ca_from[0]):
+ elif (tenant.use_ca_from[0]):
shutil.copy2(
tenant.use_ca_from[0].pki_dir + "/ca.crt",
tenant.pki_dir)