Skip to content

Commit

Permalink
Cleanup okta index.js (#7)
Browse files Browse the repository at this point in the history
* Cleanup okta index.js

* Update travis config
  • Loading branch information
kkuzmin authored Nov 27, 2019
1 parent f4430e0 commit 7f27a20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ node_js:
- "10"
install:
- make deps
- make -C collectors/okta deps
script:
- make test
- make -C collectors/okta test
6 changes: 2 additions & 4 deletions collectors/okta/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ const OktaCollector = require('./okta_collector').OktaCollector;
exports.handler = function(event, context) {
debug('input event: ', event);
OktaCollector.load().then(function(creds) {
var oktac = new OktaCollector(context, creds, 'okta');
oktac.handleEvent(event, function(err) {
oktac.done(err);
});
var oktac = new OktaCollector(context, creds);
oktac.handleEvent(event);
});
};

0 comments on commit 7f27a20

Please sign in to comment.