Skip to content

Commit

Permalink
Fix directory list info (user and group count were incorrectly swapped)
Browse files Browse the repository at this point in the history
Add directory health example
Bump version to 0.6.2
  • Loading branch information
bitonio committed Oct 9, 2023
1 parent 9486cc0 commit 836350e
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,18 @@ dir://EX5-YjMyTrKgeWKHrqhUEA,Okta LDAP,10
dir://Ygl1BpAFREiHrA8HR7dFhA,Azure AD,1
```

also possible as JSON, and in follow mode to consume Directory Health:

```
$ akamai eaa dir list --json --tail | jq .name
"Cloud Directory"
"AD Domain AkamaiDemo.net (global)"
"Azure AD (Sync with SCIM)"
"AKDEMO AD with UPN"
```



Trigger directory synchronization

```
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.6.1
0.6.2
2 changes: 1 addition & 1 deletion cli.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"commands": [
{
"name": "eaa",
"version": "0.6.1",
"version": "0.6.2",
"description": "Akamai CLI for Enterprise Application Access (EAA)"
}
]
Expand Down
2 changes: 1 addition & 1 deletion libeaa/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"""

#: cli-eaa version [PEP 8]
__version__ = '0.6.1'
__version__ = '0.6.2'

import sys
from threading import Event
Expand Down
4 changes: 2 additions & 2 deletions libeaa/directory.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ def list_directories_once(self):
output["enabled"] = d.get("status") == 1
output["connector_count"] = len(d.get("agents"))
output["directory_status"] = Status(d.get("directory_status")).name
output["group_count"] = d.get("user_count")
output["user_count"] = d.get("group_count")
output["group_count"] = d.get("group_count")
output["user_count"] = d.get("user_count")
output["last_sync"] = d.get("last_sync")
if d.get("agents"):
output["connectors"] = d.get("agents")
Expand Down

0 comments on commit 836350e

Please sign in to comment.