aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xnode/prepare_build_config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/node/prepare_build_config.py b/node/prepare_build_config.py
index ce80a3d..ca2e0e8 100755
--- a/node/prepare_build_config.py
+++ b/node/prepare_build_config.py
@@ -8,7 +8,7 @@ import optparse
SLAVE_TYPE_FILE = "/var/run/build-tools/slave-type"
-SLAVE_TYPE_RESTRICTED = "Natty Release 64bit Instance Store - restricted builds"
+SLAVE_TYPE_RESTRICTED = "restricted builds"
# sf-safe build config is written to this file
BUILD_CONFIG_FILE = "/var/run/build-tools/build-config"
@@ -48,7 +48,7 @@ def validate_config(config, slave_type):
# Deduce parameter "categories" which we can directly match
# against each other
- if slave_type == SLAVE_TYPE_RESTRICTED:
+ if SLAVE_TYPE_RESTRICTED in slave_type:
slave_type_cat = "restricted"
else:
slave_type_cat = "normal"