From 5c8add8e51f3cbc5f6949e890f13785502005576 Mon Sep 17 00:00:00 2001 From: Rodolfo Alonso Hernandez Date: Wed, 18 Jul 2018 16:39:17 +0100 Subject: Accept strings and lists as container "args" and "commands" Accept strings and list of strings as "args" and "commands" in a Kubernetes container. JIRA: YARDSTICK-1329 Change-Id: I56470741072fb7f9a62d695c51fcb0cc3f3ff1b9 Signed-off-by: Rodolfo Alonso Hernandez --- yardstick/common/exceptions.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'yardstick/common') diff --git a/yardstick/common/exceptions.py b/yardstick/common/exceptions.py index 1f749adc1..cbb294989 100644 --- a/yardstick/common/exceptions.py +++ b/yardstick/common/exceptions.py @@ -267,6 +267,10 @@ class KubernetesContainerWrongImagePullPolicy(YardstickException): message = 'Image pull policy must be "Always", "IfNotPresent" or "Never"' +class KubernetesContainerCommandType(YardstickException): + message = '"args" and "command" must be string or list of strings' + + class ScenarioCreateNetworkError(YardstickException): message = 'Create Neutron Network Scenario failed' -- cgit 1.2.3-korg