Skip to content

Commit

Permalink
Core API Library Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanielvarona committed Apr 27, 2023
1 parent 197c793 commit 75ef863
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pritunl_slack_app/function/pritunl_slack_app/pritunl_slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import json

from random import choice
from urllib.parse import urlparse

from slack_bolt import App

Expand Down Expand Up @@ -85,7 +84,7 @@ def processing_request(respond, body):
'pin' : user_pin,
}

org, user = org_user(pritunl_obj=pritunl, org_name=org_name, user_name=user_name)
org, user = org_user(pritunl=pritunl, org_name=org_name, user_name=user_name)

if user:
respond(f"Your profile already exists! \nUpdating your profile with new PIN.")
Expand All @@ -96,7 +95,7 @@ def processing_request(respond, body):
)

if update:
key_uri_url, key_view_url = profile_key(pritunl_obj=pritunl, org_id=update['organization'], usr_id=update['id'])
key_uri_url, key_view_url = profile_key(pritunl=pritunl, org_id=update['organization'], usr_id=update['id'])

respond_line = [
f"\n",
Expand All @@ -120,7 +119,7 @@ def processing_request(respond, body):

if create_user:
for user in create_user:
key_uri_url, key_view_url = profile_key(pritunl_obj=pritunl, org_id=user['organization'], usr_id=user['id'])
key_uri_url, key_view_url = profile_key(pritunl=pritunl, org_id=user['organization'], usr_id=user['id'])

respond_line = [
f"\n",
Expand Down

0 comments on commit 75ef863

Please sign in to comment.