Fix problem
diff --git a/xos/services/vpn/admin.py b/xos/services/vpn/admin.py
index 75fa9ca..d47cc0f 100644
--- a/xos/services/vpn/admin.py
+++ b/xos/services/vpn/admin.py
@@ -200,9 +200,9 @@
if (not os.path.isdir(self.instance.pki_dir)):
VPNService.execute_easyrsa_command(
self.instance.pki_dir, "init-pki")
- if (self.instance.use_ca_from):
+ if (len(self.instance.use_ca_from) > 0):
shutil.copy2(
- self.instance.use_ca_from.pki_dir + "/ca.crt",
+ self.instance.use_ca_fromp[0].pki_dir + "/ca.crt",
self.instance.pki_dir)
else:
VPNService.execute_easyrsa_command(