Fix docstrings and add modules for VPN observers
diff --git a/xos/observers/vpn/__init__.py b/xos/observers/vpn/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/xos/observers/vpn/__init__.py
diff --git a/xos/observers/vpn/steps/__init__.py b/xos/observers/vpn/steps/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/xos/observers/vpn/steps/__init__.py
diff --git a/xos/services/vpn/admin.py b/xos/services/vpn/admin.py
index a7096be..ceb59dc 100644
--- a/xos/services/vpn/admin.py
+++ b/xos/services/vpn/admin.py
@@ -53,7 +53,7 @@
client_address (forms.GenericIPAddressField): The ip address on the VPN of the client.
is_persistent (forms.BooleanField): Determines if this Tenant keeps this connection alive through failures.
can_view_subnet (forms.BooleanField): Determins if this Tenant makes it's subnet available to the client.
-
+
"""
creator = forms.ModelChoiceField(queryset=User.objects.all())
server_key = forms.CharField(required=False, widget=forms.Textarea)
@@ -109,7 +109,7 @@
return super(VPNTenantForm, self).save(commit=commit)
def generate_VPN_key(self):
- """Generates a VPN key using the openvpn command."""
+ """str: Generates a VPN key using the openvpn command."""
proc = Popen("openvpn --genkey --secret /dev/stdout",
shell=True, stdout=PIPE)
(stdout, stderr) = proc.communicate()
diff --git a/xos/services/vpn/models.py b/xos/services/vpn/models.py
index 313fcc6..33fb429 100644
--- a/xos/services/vpn/models.py
+++ b/xos/services/vpn/models.py
@@ -1,6 +1,6 @@
from core.models import Service, TenantWithContainer
from django.db import transaction
-from typing import Mapping, tuple
+from typing import Mapping, Tuple
VPN_KIND = "vpn"