{"action":"created","comment":{"url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/pulls/comments/35646160","id":35646160,"diff_hunk":"@@ -28,18 +28,19 @@ var spawn = require('child_process').spawn;\n \n function run(cmd, params, callback) {\n     var execution = spawn(cmd, params);\n-    var result = '';\n+    var resStdout = '';\n+    var resStderr = '';\n \n     execution.stdout.on('data', function (data) {\n-        result += 'stdout: ' + data.toString();\n+        resStdout += data.toString();\n     });\n \n     execution.stderr.on('data', function (data) {\n-        result += 'stderr: ' + data.toString();\n+        resStderr += + data.toString();\n     });\n \n     execution.on('close', function (code) {\n-        return callback(null, result);\n+        return callback(null, resStdout.length == 0 ? null : resStdout);","path":"cosmos-gui/src/cmd_runner.js","position":null,"original_position":20,"commit_id":"95ccdc4dc1dbba0c8907a822ebf7f9f6d2fddfc5","original_commit_id":"c12b0f6c52744ba8c5e2d03c545c77c34e3205f4","user":{"login":"frbattid","id":3865056,"avatar_url":"https://avatars.githubusercontent.com/u/3865056?v=3","gravatar_id":"","url":"https://api.github.com/users/frbattid","html_url":"https://github.com/frbattid","followers_url":"https://api.github.com/users/frbattid/followers","following_url":"https://api.github.com/users/frbattid/following{/other_user}","gists_url":"https://api.github.com/users/frbattid/gists{/gist_id}","starred_url":"https://api.github.com/users/frbattid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frbattid/subscriptions","organizations_url":"https://api.github.com/users/frbattid/orgs","repos_url":"https://api.github.com/users/frbattid/repos","events_url":"https://api.github.com/users/frbattid/events{/privacy}","received_events_url":"https://api.github.com/users/frbattid/received_events","type":"User","site_admin":false},"body":"`NaN` appeared because of a wrong string concatenation, thanks @gtorodelvalle for looking!\r\n\r\nFixed in https://github.com/telefonicaid/fiware-cosmos/commit/95ccdc4dc1dbba0c8907a822ebf7f9f6d2fddfc5","created_at":"2015-07-28T13:28:22Z","updated_at":"2015-07-28T13:28:22Z","html_url":"https://github.com/telefonicaid/fiware-cosmos/pull/46#discussion_r35646160","pull_request_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/pulls/46","_links":{"self":{"href":"https://api.github.com/repos/telefonicaid/fiware-cosmos/pulls/comments/35646160"},"html":{"href":"https://github.com/telefonicaid/fiware-cosmos/pull/46#discussion_r35646160"},"pull_request":{"href":"https://api.github.com/repos/telefonicaid/fiware-cosmos/pulls/46"}}},"pull_request":{"url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/pulls/46","id":40901674,"html_url":"https://github.com/telefonicaid/fiware-cosmos/pull/46","diff_url":"https://github.com/telefonicaid/fiware-cosmos/pull/46.diff","patch_url":"https://github.com/telefonicaid/fiware-cosmos/pull/46.patch","issue_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/issues/46","number":46,"state":"closed","locked":false,"title":"feature/25_computing_cluster_provision","user":{"login":"frbattid","id":3865056,"avatar_url":"https://avatars.githubusercontent.com/u/3865056?v=3","gravatar_id":"","url":"https://api.github.com/users/frbattid","html_url":"https://github.com/frbattid","followers_url":"https://api.github.com/users/frbattid/followers","following_url":"https://api.github.com/users/frbattid/following{/other_user}","gists_url":"https://api.github.com/users/frbattid/gists{/gist_id}","starred_url":"https://api.github.com/users/frbattid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frbattid/subscriptions","organizations_url":"https://api.github.com/users/frbattid/orgs","repos_url":"https://api.github.com/users/frbattid/repos","events_url":"https://api.github.com/users/frbattid/events{/privacy}","received_events_url":"https://api.github.com/users/frbattid/received_events","type":"User","site_admin":false},"body":"* Implements issue #25 \r\n* No unit tests still available\r\n* (unofficial) e2e tests passed:\r\n```\r\ninfo: Successful command executed: 'bash -c echo \"sudo useradd deleteme\" | ssh -i /Users/frb/devel/fiware/private-key.pem fiware-portal@dev-fiwr-bignode-11.hi.inet'\r\ninfo: Successful command executed: 'bash -c echo \"sudo useradd deleteme\" | ssh -i /Users/frb/devel/fiware/private-key.pem fiware-portal@dev-fiwr-httpfs-01.hi.inet'\r\ninfo: Successful command executed: 'bash -c echo \"echo abc | sudo passwd deleteme --stdin\" | ssh -i /Users/frb/devel/fiware/private-key.pem fiware-portal@dev-fiwr-httpfs-01.hi.inet'\r\ninfo: Successful command executed: 'bash -c echo \"echo abc | sudo passwd deleteme --stdin\" | ssh -i /Users/frb/devel/fiware/private-key.pem fiware-portal@dev-fiwr-bignode-11.hi.inet'\r\ninfo: Successful command executed: 'bash -c echo \"sudo -u hdfs hadoop fs -mkdir /user/deleteme\" | ssh -i /Users/frb/devel/fiware/private-key.pem fiware-portal@dev-fiwr-httpfs-01.hi.inet'\r\ninfo: Successful command executed: 'bash -c echo \"sudo -u hdfs hadoop fs -mkdir /user/deleteme\" | ssh -i /Users/frb/devel/fiware/private-key.pem fiware-portal@dev-fiwr-bignode-11.hi.inet'\r\ninfo: Successful command executed: 'bash -c echo \"sudo -u hdfs hadoop fs -chown -R deleteme:deleteme /user/deleteme\" | ssh -i /Users/frb/devel/fiware/private-key.pem fiware-portal@dev-fiwr-httpfs-01.hi.inet'\r\ninfo: Successful command executed: 'bash -c echo \"sudo -u hdfs hadoop fs -chown -R deleteme:deleteme /user/deleteme\" | ssh -i /Users/frb/devel/fiware/private-key.pem fiware-portal@dev-fiwr-bignode-11.hi.inet'\r\ninfo: Successful command executed: 'bash -c echo \"sudo -u hdfs hadoop fs -chmod -R 740 /user/deleteme\" | ssh -i /Users/frb/devel/fiware/private-key.pem fiware-portal@dev-fiwr-httpfs-01.hi.inet'\r\ninfo: Successful command executed: 'bash -c echo \"sudo -u hdfs hadoop fs -chmod -R 740 /user/deleteme\" | ssh -i /Users/frb/devel/fiware/private-key.pem fiware-portal@dev-fiwr-bignode-11.hi.inet'\r\ninfo: Successful command executed: 'bash -c echo \"sudo -u hdfs hadoop dfsadmin -setSpaceQuota 5g /user/deleteme\" | ssh -i /Users/frb/devel/fiware/private-key.pem fiware-portal@dev-fiwr-httpfs-01.hi.inet'\r\ninfo: Successful command executed: 'bash -c echo \"sudo -u hdfs hadoop dfsadmin -setSpaceQuota 5g /user/deleteme\" | ssh -i /Users/frb/devel/fiware/private-key.pem fiware-portal@dev-fiwr-bignode-11.hi.inet'\r\n\r\n```\r\n* Assignee @gtorodelvalle ","created_at":"2015-07-27T13:14:26Z","updated_at":"2015-07-28T13:28:22Z","closed_at":"2015-07-28T13:28:10Z","merged_at":"2015-07-28T13:28:10Z","merge_commit_sha":"f2a7709e2a03c019cb2540148cfebcd498dfa2f5","assignee":{"login":"gtorodelvalle","id":667284,"avatar_url":"https://avatars.githubusercontent.com/u/667284?v=3","gravatar_id":"","url":"https://api.github.com/users/gtorodelvalle","html_url":"https://github.com/gtorodelvalle","followers_url":"https://api.github.com/users/gtorodelvalle/followers","following_url":"https://api.github.com/users/gtorodelvalle/following{/other_user}","gists_url":"https://api.github.com/users/gtorodelvalle/gists{/gist_id}","starred_url":"https://api.github.com/users/gtorodelvalle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtorodelvalle/subscriptions","organizations_url":"https://api.github.com/users/gtorodelvalle/orgs","repos_url":"https://api.github.com/users/gtorodelvalle/repos","events_url":"https://api.github.com/users/gtorodelvalle/events{/privacy}","received_events_url":"https://api.github.com/users/gtorodelvalle/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/pulls/46/commits","review_comments_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/pulls/46/comments","review_comment_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/pulls/comments{/number}","comments_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/issues/46/comments","statuses_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/statuses/95ccdc4dc1dbba0c8907a822ebf7f9f6d2fddfc5","head":{"label":"telefonicaid:feature/computing_cluster_provision","ref":"feature/computing_cluster_provision","sha":"95ccdc4dc1dbba0c8907a822ebf7f9f6d2fddfc5","user":{"login":"telefonicaid","id":968363,"avatar_url":"https://avatars.githubusercontent.com/u/968363?v=3","gravatar_id":"","url":"https://api.github.com/users/telefonicaid","html_url":"https://github.com/telefonicaid","followers_url":"https://api.github.com/users/telefonicaid/followers","following_url":"https://api.github.com/users/telefonicaid/following{/other_user}","gists_url":"https://api.github.com/users/telefonicaid/gists{/gist_id}","starred_url":"https://api.github.com/users/telefonicaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telefonicaid/subscriptions","organizations_url":"https://api.github.com/users/telefonicaid/orgs","repos_url":"https://api.github.com/users/telefonicaid/repos","events_url":"https://api.github.com/users/telefonicaid/events{/privacy}","received_events_url":"https://api.github.com/users/telefonicaid/received_events","type":"Organization","site_admin":false},"repo":{"id":37133407,"name":"fiware-cosmos","full_name":"telefonicaid/fiware-cosmos","owner":{"login":"telefonicaid","id":968363,"avatar_url":"https://avatars.githubusercontent.com/u/968363?v=3","gravatar_id":"","url":"https://api.github.com/users/telefonicaid","html_url":"https://github.com/telefonicaid","followers_url":"https://api.github.com/users/telefonicaid/followers","following_url":"https://api.github.com/users/telefonicaid/following{/other_user}","gists_url":"https://api.github.com/users/telefonicaid/gists{/gist_id}","starred_url":"https://api.github.com/users/telefonicaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telefonicaid/subscriptions","organizations_url":"https://api.github.com/users/telefonicaid/orgs","repos_url":"https://api.github.com/users/telefonicaid/repos","events_url":"https://api.github.com/users/telefonicaid/events{/privacy}","received_events_url":"https://api.github.com/users/telefonicaid/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/telefonicaid/fiware-cosmos","description":"fiware-cosmos toolkit for administration and support. Includes Sahara plugin","fork":false,"url":"https://api.github.com/repos/telefonicaid/fiware-cosmos","forks_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/forks","keys_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/teams","hooks_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/hooks","issue_events_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/issues/events{/number}","events_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/events","assignees_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/assignees{/user}","branches_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/branches{/branch}","tags_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/tags","blobs_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/git/refs{/sha}","trees_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/statuses/{sha}","languages_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/languages","stargazers_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/stargazers","contributors_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/contributors","subscribers_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/subscribers","subscription_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/subscription","commits_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/commits{/sha}","git_commits_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/git/commits{/sha}","comments_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/comments{/number}","issue_comment_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/issues/comments{/number}","contents_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/contents/{+path}","compare_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/merges","archive_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/downloads","issues_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/issues{/number}","pulls_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/pulls{/number}","milestones_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/milestones{/number}","notifications_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/labels{/name}","releases_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/releases{/id}","created_at":"2015-06-09T13:24:13Z","updated_at":"2015-07-08T10:09:23Z","pushed_at":"2015-07-28T13:28:12Z","git_url":"git://github.com/telefonicaid/fiware-cosmos.git","ssh_url":"git@github.com:telefonicaid/fiware-cosmos.git","clone_url":"https://github.com/telefonicaid/fiware-cosmos.git","svn_url":"https://github.com/telefonicaid/fiware-cosmos","homepage":null,"size":1480,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":11,"forks":0,"open_issues":11,"watchers":1,"default_branch":"develop"}},"base":{"label":"telefonicaid:develop","ref":"develop","sha":"9f9fcd3cbbdbbd58b52d15083cee103a3f722d3b","user":{"login":"telefonicaid","id":968363,"avatar_url":"https://avatars.githubusercontent.com/u/968363?v=3","gravatar_id":"","url":"https://api.github.com/users/telefonicaid","html_url":"https://github.com/telefonicaid","followers_url":"https://api.github.com/users/telefonicaid/followers","following_url":"https://api.github.com/users/telefonicaid/following{/other_user}","gists_url":"https://api.github.com/users/telefonicaid/gists{/gist_id}","starred_url":"https://api.github.com/users/telefonicaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telefonicaid/subscriptions","organizations_url":"https://api.github.com/users/telefonicaid/orgs","repos_url":"https://api.github.com/users/telefonicaid/repos","events_url":"https://api.github.com/users/telefonicaid/events{/privacy}","received_events_url":"https://api.github.com/users/telefonicaid/received_events","type":"Organization","site_admin":false},"repo":{"id":37133407,"name":"fiware-cosmos","full_name":"telefonicaid/fiware-cosmos","owner":{"login":"telefonicaid","id":968363,"avatar_url":"https://avatars.githubusercontent.com/u/968363?v=3","gravatar_id":"","url":"https://api.github.com/users/telefonicaid","html_url":"https://github.com/telefonicaid","followers_url":"https://api.github.com/users/telefonicaid/followers","following_url":"https://api.github.com/users/telefonicaid/following{/other_user}","gists_url":"https://api.github.com/users/telefonicaid/gists{/gist_id}","starred_url":"https://api.github.com/users/telefonicaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telefonicaid/subscriptions","organizations_url":"https://api.github.com/users/telefonicaid/orgs","repos_url":"https://api.github.com/users/telefonicaid/repos","events_url":"https://api.github.com/users/telefonicaid/events{/privacy}","received_events_url":"https://api.github.com/users/telefonicaid/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/telefonicaid/fiware-cosmos","description":"fiware-cosmos toolkit for administration and support. Includes Sahara plugin","fork":false,"url":"https://api.github.com/repos/telefonicaid/fiware-cosmos","forks_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/forks","keys_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/teams","hooks_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/hooks","issue_events_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/issues/events{/number}","events_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/events","assignees_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/assignees{/user}","branches_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/branches{/branch}","tags_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/tags","blobs_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/git/refs{/sha}","trees_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/statuses/{sha}","languages_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/languages","stargazers_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/stargazers","contributors_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/contributors","subscribers_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/subscribers","subscription_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/subscription","commits_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/commits{/sha}","git_commits_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/git/commits{/sha}","comments_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/comments{/number}","issue_comment_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/issues/comments{/number}","contents_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/contents/{+path}","compare_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/merges","archive_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/downloads","issues_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/issues{/number}","pulls_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/pulls{/number}","milestones_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/milestones{/number}","notifications_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/labels{/name}","releases_url":"https://api.github.com/repos/telefonicaid/fiware-cosmos/releases{/id}","created_at":"2015-06-09T13:24:13Z","updated_at":"2015-07-08T10:09:23Z","pushed_at":"2015-07-28T13:28:12Z","git_url":"git://github.com/telefonicaid/fiware-cosmos.git","ssh_url":"git@github.com:telefonicaid/fiware-cosmos.git","clone_url":"https://github.com/telefonicaid/fiware-cosmos.git","svn_url":"https://github.com/telefonicaid/fiware-cosmos","homepage":null,"size":1480,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":11,"forks":0,"open_issues":11,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/telefonicaid/fiware-cosmos/pulls/46"},"html":{"href":"https://github.com/telefonicaid/fiware-cosmos/pull/46"},"issue":{"href":"https://api.github.com/repos/telefonicaid/fiware-cosmos/issues/46"},"comments":{"href":"https://api.github.com/repos/telefonicaid/fiware-cosmos/issues/46/comments"},"review_comments":{"href":"https://api.github.com/repos/telefonicaid/fiware-cosmos/pulls/46/comments"},"review_comment":{"href":"https://api.github.com/repos/telefonicaid/fiware-cosmos/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/telefonicaid/fiware-cosmos/pulls/46/commits"},"statuses":{"href":"https://api.github.com/repos/telefonicaid/fiware-cosmos/statuses/95ccdc4dc1dbba0c8907a822ebf7f9f6d2fddfc5"}}}}