summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Holland <william.holland@codethink.co.uk>2015-09-30 16:16:11 +0100
committerWill Holland <william.holland@codethink.co.uk>2015-09-30 16:16:11 +0100
commita3bd47f05532c9aac948553019ec0a73816947df (patch)
tree7c4f0c6d3f37b3cd5c4b1b55007ad82c049ccd9a
parentc974421f6278a81df369ee88d6f8a3de659e9e8f (diff)
downloadciatlib-a3bd47f05532c9aac948553019ec0a73816947df.tar.gz
Add temporary slave workaround
This needs changing for true elasticity
-rw-r--r--ciatlib/master.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/ciatlib/master.py b/ciatlib/master.py
index 04c0edc..22ccfcb 100644
--- a/ciatlib/master.py
+++ b/ciatlib/master.py
@@ -114,8 +114,11 @@ class Pipeline:
def get_slaves(self,slave_type):
''' this returns a list of slaves given a slave-type '''
- #TODO
- pass
+ #TODO this needs doing properly
+ if slave_type['arch'] == 'x86_64':
+ return 'local-slave'
+ elif slave_type['arch'] == 'arm':
+ return 'arm-slave'
def __init__(self,
name,