Skip to content

Commit

Permalink
unRegisterAgent true
Browse files Browse the repository at this point in the history
  • Loading branch information
playground committed Sep 7, 2023
1 parent 77af422 commit 80d51c5
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build/common/src/hzn.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/common/src/hzn.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/common/src/utils.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/common/src/utils.js.map

Large diffs are not rendered by default.

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.6.6",
"version": "0.6.7",
"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/hzn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export class Hzn {
return utils.shell(arg, 'done publishing mss pattern', 'failed to publish mms pattern', false);
}
unregisterAgent() {
return utils.unregisterAgent()
return utils.unregisterAgent(true)
}
register() {
return utils.register(this)
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 @@ -1900,7 +1900,7 @@ export class Utils {
observer.complete()
} else if(answer == 1) {
console.log('\x1b[32m', '\nRegister with a Policy')
this.registerWithPolicy(hzn.param.name, this.getPolicyJson(policyType.nodePolicy))
this.registerWithPolicy(hzn.param.name, this.getPolicyJson(policyType.nodePolicy), true)
.subscribe(() => {observer.next(1); observer.complete()})
} else if(answer == 2) {
console.log('\x1b[32m', '\nRegister with a Pattern')
Expand Down

0 comments on commit 80d51c5

Please sign in to comment.