commit | 367046570a8dc0b3ecdab18f7b0d7776ba3bea7e | [log] [tgz] |
---|---|---|
author | Jeremy Mowery <jermowery@email.arizona.edu> | Wed Apr 06 15:07:52 2016 -0700 |
committer | Jeremy Mowery <jermowery@email.arizona.edu> | Wed Apr 06 15:07:52 2016 -0700 |
tree | 7a04c931e8485a438d72f67f809cabc22911b10c | |
parent | f6a5f49d90663db9d697236ce1ba086a152f6ee8 [diff] |
Fix another problem
diff --git a/xos/services/vpn/admin.py b/xos/services/vpn/admin.py index dda4da3..f9e2b91 100644 --- a/xos/services/vpn/admin.py +++ b/xos/services/vpn/admin.py
@@ -200,7 +200,7 @@ if (not os.path.isdir(self.instance.pki_dir)): VPNService.execute_easyrsa_command( self.instance.pki_dir, "init-pki") - if (len(self.instance.use_ca_from) > 0): + if (self.instance.use_ca_from[0]): shutil.copy2( self.instance.use_ca_from[0].pki_dir + "/ca.crt", self.instance.pki_dir)