Skip to content

Commit

Permalink
check if agent started successfully
Browse files Browse the repository at this point in the history
  • Loading branch information
playground committed Mar 22, 2023
1 parent 29615ae commit f1996a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hzn-cli",
"version": "0.4.23",
"version": "0.4.24",
"description": "Open Horizon CLI toolkit helps streamline the process of preparing node agents and perform tasks between orgs environments",
"main": "./build/index.js",
"bin": {
Expand Down
2 changes: 1 addition & 1 deletion src/common/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2250,7 +2250,7 @@ export class Utils {
});
child.stdout.pipe(process.stdout);
child.stdout.on('data', (data) => {
if(data.indexOf(`Run 'hzn agreement list' to view`) > 0) {
if(data.indexOf(`Run 'hzn agreement list' to view`) > 0 || data.indexOf(`agent started successfully`) > 0) {
console.log(success);
observer.next(prnStdout ? data : '');
observer.complete();
Expand Down

0 comments on commit f1996a3

Please sign in to comment.