aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2018-08-03 14:27:55 +0000
committerPeter Mikus <pmikus@cisco.com>2018-08-10 15:57:00 +0000
commit81184fdb8f4ec8668bd7b0c8a703891d95095192 (patch)
treedb2bd3e2e9b34d1fc439644975abca020eba449b /resources/libraries/python
parent08e4ac10c1a718c352ecafb8f472f62dfe7dfd24 (diff)
CSIT-1156 Create container memif tests for 2-node topology
CSIT-1155 Implement container memif KWs for 2-node topology Change-Id: I4fc7bcab499a0b8a8594114d3f331b0d9610bf9d Signed-off-by: Peter Mikus <pmikus@cisco.com>
Diffstat (limited to 'resources/libraries/python')
-rw-r--r--resources/libraries/python/ContainerUtils.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/resources/libraries/python/ContainerUtils.py b/resources/libraries/python/ContainerUtils.py
index eadc0a8a5a..54bbdbbc04 100644
--- a/resources/libraries/python/ContainerUtils.py
+++ b/resources/libraries/python/ContainerUtils.py
@@ -689,7 +689,10 @@ class Docker(ContainerEngine):
else:
return
- cmd = 'docker pull {c.image}'.format(c=self.container)
+ image = self.container.image if self.container.image else\
+ "ubuntu:xenial-20180412"
+
+ cmd = 'docker pull {image}'.format(image=image)
ret, _, _ = self.container.ssh.exec_command_sudo(cmd, timeout=1800)
if int(ret) != 0: