Commit b654180b authored by Nigel Kukard's avatar Nigel Kukard
Browse files

Fixed determination of valid pool override attributes

parent e1ed5ba2
...@@ -3425,8 +3425,11 @@ sub createPoolOverride ...@@ -3425,8 +3425,11 @@ sub createPoolOverride
# Check that we have at least one match attribute # Check that we have at least one match attribute
my $isValid = 0; my $isValid = 0;
foreach my $item (POOL_OVERRIDE_MATCH_ATTRIBUTES) { foreach my $item (POOL_OVERRIDE_MATCH_ATTRIBUTES) {
# Bump up $isValid if we have a match attribute
if (defined($poolOverrideData->{$item})) {
$isValid++; $isValid++;
} }
}
if (!$isValid) { if (!$isValid) {
$logger->log(LOG_WARN,"[CONFIGMANAGER] Cannot process pool override as there is no selection attribute"); $logger->log(LOG_WARN,"[CONFIGMANAGER] Cannot process pool override as there is no selection attribute");
return; return;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment