Skip to content

Commit a587a97

Browse files
committed
policies: add firstnodex to the known policies
problem: the firstnodex policy was added and tested, but couldn't be selected by users because it wouldn't be seen as a known policy. solution: accept the firstnodex value as a known policy in `known_match_policy`
1 parent d0b9ac3 commit a587a97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resource/policies/dfu_match_policy_factory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace resource_model {
2323
bool known_match_policy (const std::string &policy)
2424
{
2525
bool rc = true;
26-
if (policy != FIRST_MATCH
26+
if (policy != FIRST_MATCH && policy != FIRST_NODEX_MATCH
2727
&& policy != HIGH_ID_FIRST && policy != LOW_ID_FIRST
2828
&& policy != LOW_NODE_FIRST && policy != HIGH_NODE_FIRST
2929
&& policy != LOW_NODEX_FIRST && policy != HIGH_NODEX_FIRST

0 commit comments

Comments
 (0)