Skip to content

Commit

Permalink
v0.9.2 hotfix for previous v0.9.1 erroneous version
Browse files Browse the repository at this point in the history
  • Loading branch information
armab committed Mar 20, 2019
1 parent 29bf339 commit 50e52be
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ Changelog
in development
--------------

0.9.1
0.9.2
-----
* Rename ENV variable `ST2_API` -> `ST2_API_URL` for consistency, keep `ST2_API` for backwards compatibility (improvement)

0.9.1
-----
* Erroneous version

0.9.0
-----
* Remove support for Yammer (removal)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "hubot-stackstorm",
"description": "A hubot plugin for integrating with StackStorm event-driven infrastructure automation platform.",
"version": "0.9.1",
"version": "0.9.2",
"author": "StackStorm, Inc. <[email protected]>",
"license": "Apache-2.0",
"keywords": [
Expand Down
12 changes: 4 additions & 8 deletions scripts/stackstorm.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,7 @@ var _ = require('lodash'),
;

// Setup the Environment
env.ST2_API_URL = env.ST2_API_URL || null;
if (!env.ST2_API_URL) {
if (env.ST2_API) {
robot.logger.warning("ST2_API is now deprecated and will be removed in a future release. Instead, please use the ST2_API_URL environment variable.");
}
env.ST2_API_URL = env.ST2_API || 'http://localhost:9101';
}

env.ST2_API_URL = env.ST2_API || env.ST2_API_URL || 'http://localhost:9101';
env.ST2_ROUTE = env.ST2_ROUTE || null;
env.ST2_WEBUI_URL = env.ST2_WEBUI_URL || null;

Expand Down Expand Up @@ -111,6 +104,9 @@ module.exports = function(robot) {

var promise = Promise.resolve();

if (env.ST2_API) {
robot.logger.warning("ST2_API is deprecated and will be removed in a future releases. Instead, please use the ST2_API_URL environment variable.");
}
var url = utils.parseUrl(env.ST2_API_URL);

var opts = {
Expand Down

0 comments on commit 50e52be

Please sign in to comment.