Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
opentrafficshaper
opentrafficshaper
Commits
b654180b
Commit
b654180b
authored
Mar 06, 2018
by
Nigel Kukard
Browse files
Fixed determination of valid pool override attributes
parent
e1ed5ba2
Changes
1
Show whitespace changes
Inline
Side-by-side
opentrafficshaper/plugins/configmanager.pm
View file @
b654180b
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment