Skip to content

Commit

Permalink
fix: jans-cli hardcode enums
Browse files Browse the repository at this point in the history
  • Loading branch information
devrimyatar committed May 5, 2022
1 parent 1dc5cb0 commit 739a759
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
12 changes: 7 additions & 5 deletions jans-cli/cli/config_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,11 +303,13 @@ def __init__(self, host, client_id, client_secret, access_token, test_client=Fal
self.enums()

def enums(self):
self.enum_dict = {}
enum_json = Path(os.path.join(cur_dir, 'enums.json'))
if enum_json.is_file():
self.enum_dict = json.loads(enum_json.read_text())

self.enum_dict = {
"CustomAttribute": {
"properties.name": {
"f": "get_attrib_list"
}
}
}

def set_user(self):
self.auth_username = None
Expand Down
7 changes: 0 additions & 7 deletions jans-cli/cli/enums.json

This file was deleted.

0 comments on commit 739a759

Please sign in to comment.