Skip to content

Commit

Permalink
Rename OPENVPN_CLOUD_BASEURL to CLOUDCONNEXA_BASEURL
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
dsommers committed May 22, 2023
1 parent 1b5cbbb commit 46a7f3c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions openvpn/connector/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 46a7f3c

Please sign in to comment.