From 2a8f04347d122192967b14c3984feb003b81086b Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Thu, 11 Feb 2021 07:59:45 +0100 Subject: [PATCH] Fix typo in aerospike_migration module. (#1740) (#1784) (cherry picked from commit 9a6031ab4ee00de1caa14e329d15699c1c72cf9f) Co-authored-by: Felix Fontein --- changelogs/fragments/1740-aerospike_migration.yml | 2 ++ plugins/modules/database/aerospike/aerospike_migrations.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/1740-aerospike_migration.yml diff --git a/changelogs/fragments/1740-aerospike_migration.yml b/changelogs/fragments/1740-aerospike_migration.yml new file mode 100644 index 0000000000..e66963aae7 --- /dev/null +++ b/changelogs/fragments/1740-aerospike_migration.yml @@ -0,0 +1,2 @@ +bugfixes: +- "aerospike_migration - fix typo that caused ``migrate_tx_key`` instead of ``migrate_rx_key`` being used (https://github.com/ansible-collections/community.general/pull/1739)." diff --git a/plugins/modules/database/aerospike/aerospike_migrations.py b/plugins/modules/database/aerospike/aerospike_migrations.py index 27bfc1a95b..bf6ac60e8f 100644 --- a/plugins/modules/database/aerospike/aerospike_migrations.py +++ b/plugins/modules/database/aerospike/aerospike_migrations.py @@ -338,7 +338,7 @@ class Migrations: namespace_tx = \ int(namespace_stats[self.module.params['migrate_tx_key']]) namespace_rx = \ - int(namespace_stats[self.module.params['migrate_tx_key']]) + int(namespace_stats[self.module.params['migrate_rx_key']]) except KeyError: self.module.fail_json( msg="Did not find partition remaining key:" +