diff options
author | Petri Latvala <petri.latvala@intel.com> | 2017-12-11 13:30:26 +0200 |
---|---|---|
committer | Petri Latvala <petri.latvala@intel.com> | 2017-12-11 13:45:59 +0200 |
commit | eca067cd5a5cad4d77fe199e9ab08dd7835e4617 (patch) | |
tree | 27206b78c9b77b060d0e4fcfbfc8791c7d65810e | |
parent | cff44158dd500d60b88e296f8477769a2ab41234 (diff) |
ezbench: Pass attributes when creating a job
Signed-off-by: Petri Latvala <petri.latvala@intel.com>
Reviewed-by: Martin Peres <martin.peres@linux.intel.com>
-rwxr-xr-x | ezbench | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -105,6 +105,7 @@ class RestHandler(CommandHandler): def __init__(self, server): self.server = server self.machines = [] + self.attributes = {} def get(self, url): fullurl = self.server + url @@ -174,7 +175,7 @@ class RestHandler(CommandHandler): if state is None and profile is not None: payload = { "description": "Test job", "profile": profile, - "attributes": {}, + "attributes": self.attributes, "machines": [] } for m in self.machines: |