Skip to content

Commit

Permalink
Fixes to match linter.
Browse files Browse the repository at this point in the history
  • Loading branch information
rudissaar committed Mar 9, 2018
1 parent d80c98d commit 989bba2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions simplified_openvpn.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def generate_config_files(self, verbose=True):

# Clean up.
self.cleanup_client_certificates()

if verbose:
print('> Client "' + self._config.slug + '" was successfully created.')

Expand All @@ -181,7 +181,7 @@ def insert_share_hash(self, verbose=True):
if verbose:
print('> Share Hash: ' + self._config.share_hash)

def rotate_share_hashes(self, verbose=True):
def rotate_share_hashes(self):
"""Generates share hashes for clients who can be found in database."""
sovpn_data = SimplifiedOpenvpnData()
slugs = sovpn_data.get_all_client_slugs()
Expand Down
1 change: 0 additions & 1 deletion simplified_openvpn_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,3 @@ def generate_share_hash(slug, sovpn_share_salt=''):
feed = (sovpn_share_salt + slug).encode('utf-8')
share_hash = hashlib.sha256(feed).hexdigest()
return share_hash

1 change: 1 addition & 0 deletions sovpn.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# pylint: disable=W0621

"""Bootstrap file and entry point for Simplified Openvpn."""

Expand Down

0 comments on commit 989bba2

Please sign in to comment.