From cd4bd793d6f0fe51eb3b4bf54d9df727a5fb1de8 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Thu, 22 Aug 2013 23:25:30 +0300 Subject: Don't match slave type on exact OS release. --- node/prepare_build_config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'node') 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" -- cgit v1.2.3