Skip to content

Commit

Permalink
Rename OPENVPN_CLOUD_DEBUG to OPENVPN_CONNECTOR_DEBUG
Browse files Browse the repository at this point in the history
This takes the OpenVPN Cloud renaming a bit further, remove non-related
OpenVPN Cloud references in the code.

Signed-off-by: David Sommerseth <[email protected]>
  • Loading branch information
dsommers committed May 22, 2023
1 parent 23378d3 commit f1c8e33
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions openvpn/connector/configmgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def Import(self, profile):
if len(self.__overwrite) > 0:
print('** Warning ** Removing old configuration profile with same name')
for cfg in self.__overwrite:
if 'OPENVPN_CLOUD_DEBUG' in os.environ:
if 'OPENVPN_CONNECTOR_DEBUG' in os.environ:
print('.. Removing %s' % cfg.GetPath())
cfg.Remove()

Expand All @@ -49,7 +49,7 @@ def Import(self, profile):
self._cfgobj.SetOverride('persist-tun', True)
self._cfgobj.SetOverride('log-level', '5')
print('Done')
if 'OPENVPN_CLOUD_DEBUG' in os.environ:
if 'OPENVPN_CONNECTOR_DEBUG' in os.environ:
print('Configuration path: %s' % self._cfgobj.GetPath())


Expand Down
6 changes: 3 additions & 3 deletions openvpn/connector/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

# Add the traceback module if we're in debugging mode.
# This will allow dumping of tracebacks when exceptions happens
if 'OPENVPN_CLOUD_DEBUG' in os.environ:
if 'OPENVPN_CONNECTOR_DEBUG' in os.environ:
import traceback


Expand Down Expand Up @@ -87,7 +87,7 @@ def main():
if cliopts.mode:
run_mode = ConfigModes.parse(cliopts.mode[0])

if 'OPENVPN_CLOUD_DEBUG' in os.environ:
if 'OPENVPN_CONNECTOR_DEBUG' in os.environ:
print('Run mode: %s' % ConfigModes.to_string(run_mode))

# By default the root installation directory is /
Expand Down Expand Up @@ -204,7 +204,7 @@ def main():
except BaseException as err:
print('\n** ERROR ** ' + str(err))

if 'OPENVPN_CLOUD_DEBUG' in os.environ:
if 'OPENVPN_CONNECTOR_DEBUG' in os.environ:
print ('\nmain traceback:')
print (traceback.format_exc())

Expand Down

0 comments on commit f1c8e33

Please sign in to comment.