diff options
author | Paul Sokolovsky <paul.sokolovsky@linaro.org> | 2013-08-22 23:25:30 +0300 |
---|---|---|
committer | Paul Sokolovsky <paul.sokolovsky@linaro.org> | 2013-08-22 23:25:30 +0300 |
commit | cd4bd793d6f0fe51eb3b4bf54d9df727a5fb1de8 (patch) | |
tree | f1932646a0aa3eaa9fae6787a71aede2bc2b61af | |
parent | 642f961adcd1eeb13c4eb6f7d9ebf217b04c10c0 (diff) |
Don't match slave type on exact OS release.
-rwxr-xr-x | node/prepare_build_config.py | 4 |
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" |