Skip to content

Commit 4d717ba

Browse files
committed
impl/groupsync: check if the client initialized correctly
1 parent 00219fd commit 4d717ba

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

impl/groupsync.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ func (o OktaPlugin) groupSyncTimer() {
1818

1919
func (o OktaPlugin) syncGroups() {
2020
c, err := client.New()
21+
if err != nil {
22+
appLogger.Warn("Not running syncGroups()", "error", err)
23+
return
24+
}
2125
groups, err := c.SearchGroups("*")
2226
if err != nil {
2327
appLogger.Warn("Not running syncGroups()", "error", err)

0 commit comments

Comments
 (0)