Skip to content

Commit

Permalink
fix(migration): resolved issue where key or certificate were missing (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Tbaile authored Jan 7, 2025
1 parent ee52d04 commit 091d93d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/ns-migration/files/scripts/openvpn
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ elif data['rw']['auth'] == 'certificate-otp':

# Create user entries
for user in data["users"]:
if user['key'] is None or user['crt'] is None:
nsmigration.vprint(f"Skipping OpenVPN Road Warrior user {user['name']}, missing key or certificate")
continue
sname = utils.get_random_id()
nsmigration.vprint(f"Creating OpenVPN Road Warrior user {user['name']}")
u.set("users", sname, "user")
Expand Down

0 comments on commit 091d93d

Please sign in to comment.