serverless-lambda-prune-plugin icon indicating copy to clipboard operation
serverless-lambda-prune-plugin copied to clipboard

Serverless 0.1.x compatibility

Open arabold opened this issue 10 years ago • 1 comments

With the changes to Serverless 0.1.x this doesn't work out-of-the-box anymore. However, I could easily fix this by changing the last few lines of index.js from this:

      return this.S.validateProject()
        .bind(_this)
        .then(function() {
          return _this.evt;
        })
        .then(_this._listLambdas);

to this:

      return _this._listLambdas(_this.evt);

My understanding is that this should work perfectly fine. I can do a pull request if you like though I wasn't sure if I missed something.

arabold avatar Jan 21 '16 00:01 arabold

Please check this out on the newest version, and if it works for you, close the issue.

Nopik avatar Feb 08 '16 09:02 Nopik