Skip to content

Commit

Permalink
Merge pull request #889 from dsurnin/hot-fix-upgrage-cmd
Browse files Browse the repository at this point in the history
Hot fix upgrage cmd
  • Loading branch information
ashcherbakov authored Aug 10, 2018
2 parents c740fe3 + 8f63eaf commit 177f151
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
13 changes: 5 additions & 8 deletions indy_client/client/wallet/upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,12 @@ def _op(self):
ACTION: self.action,
SHA256: self.sha256,
FORCE: self.force,
PACKAGE: self.package
PACKAGE: self.package,
SCHEDULE: self.schedule,
TIMEOUT: self.timeout,
JUSTIFICATION: self.justification,
REINSTALL: self.reinstall,
}
if self.action == START:
op.update({
SCHEDULE: self.schedule,
TIMEOUT: self.timeout,
JUSTIFICATION: self.justification,
REINSTALL: self.reinstall,
})

return op

Expand Down
4 changes: 2 additions & 2 deletions indy_client/test/cli/test_pool_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ def poolUpgradeCancelled(poolUpgradeScheduled, be, do, trusteeCli,
cancelUpgrade[ACTION] = CANCEL
cancelUpgrade[JUSTIFICATION] = '"not gonna give you one"'
be(trusteeCli)
do('send POOL_UPGRADE name={name} version={version} sha256={sha256} '
'action={action} justification={justification}',
do('send POOL_UPGRADE name={name} version={version} sha256={sha256} action={action} '
'justification={justification} schedule={schedule} timeout={timeout} ',
within=10,
expect=['Sending pool upgrade', 'Pool Upgrade Transaction Scheduled'],
mapper=cancelUpgrade)
Expand Down

0 comments on commit 177f151

Please sign in to comment.