From 46a7f3cc3f0c5360adb3c4b4826482f223c1fa6d Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Mon, 22 May 2023 09:31:13 +0200 Subject: [PATCH] Rename OPENVPN_CLOUD_BASEURL to CLOUDCONNEXA_BASEURL Since OpenVPN Cloud has changed the name to CloudConnexa, the base URL variable name can be renamed as well to make the connection to this service clearer. Signed-off-by: David Sommerseth --- openvpn/connector/profile.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/openvpn/connector/profile.py b/openvpn/connector/profile.py index 160c631..a837bee 100644 --- a/openvpn/connector/profile.py +++ b/openvpn/connector/profile.py @@ -19,9 +19,9 @@ from openvpn.connector.token import DecodeToken -OPENVPN_CLOUD_BASEURL='https://cloud-backend.openvpn.com/cvpn/api/v1/profiles/' -if 'OPENVPN_CLOUD_BASEURL' in os.environ: - OPENVPN_CLOUD_BASEURL=os.environ['OPENVPN_CLOUD_BASEURL'] +CLOUDCONNEXA_BASEURL='https://cloud-backend.openvpn.com/cvpn/api/v1/profiles/' +if 'CLOUDCONNEXA_BASEURL' in os.environ: + CLOUDCONNEXA_BASEURL=os.environ['CLOUDCONNEXA_BASEURL'] # # Various specific exceptions @@ -110,7 +110,7 @@ def Retrieve(self, profile): class ProfileFetch(object): """Download an encrypted CloudConnexa configuration profile""" - def __init__(self, token, baseurl=OPENVPN_CLOUD_BASEURL): + def __init__(self, token, baseurl=CLOUDCONNEXA_BASEURL): if not isinstance(token, DecodeToken): raise ValueError('token argument is not an DecodeToken object') self.__baseurl = baseurl