From 79d1a5afcf92b16fd53ed69d2ffc54267ef63a54 Mon Sep 17 00:00:00 2001 From: Andrei-Adnan Ismail Date: Wed, 21 Oct 2015 13:59:39 +0300 Subject: [PATCH] #410 Fixing the way the ProxySQL container id is retrieved Now the APIs work only with container IDs instead with objects containing the meta-data of the containers. --- test/proxysql_base_test.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/proxysql_base_test.py b/test/proxysql_base_test.py index b67d312e0..8297ed7ff 100644 --- a/test/proxysql_base_test.py +++ b/test/proxysql_base_test.py @@ -51,7 +51,6 @@ class ProxySQLBaseTest(TestCase): container with it. """ - proxysql_container_id = self.docker_fleet.get_proxysql_container()['Id'] config = ProxySQL_Tests_Config(overrides=ProxySQLBaseTest.CONFIG_OVERRIDES) hostname = config.get('ProxySQL', 'hostname') username = username or config.get('ProxySQL', 'username') @@ -92,7 +91,7 @@ class ProxySQLBaseTest(TestCase): - running various debugging commands against the ProxySQL instance """ - proxysql_container_id = self.docker_fleet.get_proxysql_container()['Id'] + proxysql_container_id = self.docker_fleet.get_proxysql_container() exec_params = ["docker", "exec", proxysql_container_id] + params subprocess.call(exec_params)