diff --git a/trove/guestagent/datastore/mariadb/service.py b/trove/guestagent/datastore/mariadb/service.py index 1edb012212..aa603d996a 100644 --- a/trove/guestagent/datastore/mariadb/service.py +++ b/trove/guestagent/datastore/mariadb/service.py @@ -63,7 +63,7 @@ class MariaDBApp(mysql_service.BaseMySqlApp): gtid_executed = self._get_gtid_executed() for gtid_set in gtid_executed.split(','): uuid_set = gtid_set.split('-') - if uuid_set[1] == master_UUID: + if str(uuid_set[1]) == str(master_UUID): last_txn_id = uuid_set[-1] break return master_UUID, int(last_txn_id) diff --git a/trove/guestagent/datastore/mysql/service.py b/trove/guestagent/datastore/mysql/service.py index 891996cee8..810e17ae81 100644 --- a/trove/guestagent/datastore/mysql/service.py +++ b/trove/guestagent/datastore/mysql/service.py @@ -50,7 +50,7 @@ class MySqlApp(service.BaseMySqlApp): gtid_executed = self._get_gtid_executed() for gtid_set in gtid_executed.split(','): uuid_set = gtid_set.split(':') - if uuid_set[0] == master_UUID: + if str(uuid_set[0]) == str(master_UUID): last_txn_id = uuid_set[-1].split('-')[-1] break return master_UUID, int(last_txn_id)