Skip to content

Commit 177f151

Browse files
authored
Merge pull request #889 from dsurnin/hot-fix-upgrage-cmd
Hot fix upgrage cmd
2 parents c740fe3 + 8f63eaf commit 177f151

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

Diff for: indy_client/client/wallet/upgrade.py

+5-8
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,12 @@ def _op(self):
3131
ACTION: self.action,
3232
SHA256: self.sha256,
3333
FORCE: self.force,
34-
PACKAGE: self.package
34+
PACKAGE: self.package,
35+
SCHEDULE: self.schedule,
36+
TIMEOUT: self.timeout,
37+
JUSTIFICATION: self.justification,
38+
REINSTALL: self.reinstall,
3539
}
36-
if self.action == START:
37-
op.update({
38-
SCHEDULE: self.schedule,
39-
TIMEOUT: self.timeout,
40-
JUSTIFICATION: self.justification,
41-
REINSTALL: self.reinstall,
42-
})
4340

4441
return op
4542

Diff for: indy_client/test/cli/test_pool_upgrade.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ def poolUpgradeCancelled(poolUpgradeScheduled, be, do, trusteeCli,
4343
cancelUpgrade[ACTION] = CANCEL
4444
cancelUpgrade[JUSTIFICATION] = '"not gonna give you one"'
4545
be(trusteeCli)
46-
do('send POOL_UPGRADE name={name} version={version} sha256={sha256} '
47-
'action={action} justification={justification}',
46+
do('send POOL_UPGRADE name={name} version={version} sha256={sha256} action={action} '
47+
'justification={justification} schedule={schedule} timeout={timeout} ',
4848
within=10,
4949
expect=['Sending pool upgrade', 'Pool Upgrade Transaction Scheduled'],
5050
mapper=cancelUpgrade)

0 commit comments

Comments
 (0)