Skip to content

Commit 2e14ec5

Browse files
Compatible group... Include group.
1 parent df6dae6 commit 2e14ec5

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

cardano_clusterlib/compat_common.py

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -201,17 +201,16 @@ def gen_registration_cert(
201201
if pool_data.check_metadata_hash:
202202
metadata_args.append("--check-metadata-hash")
203203

204-
if reward_account_vkey_file:
205-
reward_arg = [
206-
"--pool-reward-account-verification-key-file",
207-
str(reward_account_vkey_file),
208-
]
209-
else:
210-
default_owner = next(iter(owner_stake_vkey_files))
211-
reward_arg = [
212-
"--pool-reward-account-verification-key-file",
213-
str(default_owner),
214-
]
204+
reward_vkey_file = (
205+
reward_account_vkey_file
206+
if reward_account_vkey_file
207+
else next(iter(owner_stake_vkey_files))
208+
)
209+
210+
reward_arg = [
211+
"--pool-reward-account-verification-key-file",
212+
str(reward_vkey_file),
213+
]
215214

216215
cmd = [
217216
*self._base,

0 commit comments

Comments
 (0)