diff options
author | Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com> | 2018-07-18 16:39:17 +0100 |
---|---|---|
committer | Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com> | 2018-07-19 12:03:34 +0100 |
commit | 5c8add8e51f3cbc5f6949e890f13785502005576 (patch) | |
tree | 566b0cb1943636387c530f668be454c6f1aca802 /yardstick/common | |
parent | 4e058b76a3f9edd26b60f2eeaf4a4ff95e7aa0a6 (diff) |
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 <rodolfo.alonso.hernandez@intel.com>
Diffstat (limited to 'yardstick/common')
-rw-r--r-- | yardstick/common/exceptions.py | 4 |
1 files changed, 4 insertions, 0 deletions
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' |