Move to the latest docker client over docker-py python client.
If you are running an old docker-engine, just update with:
sudo service docker stop && sudo apt-get -y install docker-engine
And you should be good to go.
If you don't run the prerequisites, this change should be backward compatible with older docker clients installations.
Change-Id: Ieaa08586df1b29fc5b0fc72710736b17ae9a5f65
diff --git a/src/test/utils/CordLogger.py b/src/test/utils/CordLogger.py
index 18517b4..ae7334a 100644
--- a/src/test/utils/CordLogger.py
+++ b/src/test/utils/CordLogger.py
@@ -4,7 +4,10 @@
from CordTestUtils import log_test as log
from onosclidriver import OnosCliDriver
from OnosCtrl import OnosCtrl
-from docker import Client
+try:
+ from docker import APIClient as Client
+except:
+ from docker import Client
from CordContainer import *
import json
import requests