Skip to content

Commit

Permalink
Fix check for Draft Objects
Browse files Browse the repository at this point in the history
The draft Mode object was being checked for "draft-mode-object" property
whereas it should have been checked for "draft_mode_object", the format
it comes in from the Cassandra DB. With this fix Draft Objects will be
ignored properly.

Change-Id: I9637d6dd133330ff1f26aac74e1bda977c4dfb78
Closes-Bug: 1771691
  • Loading branch information
psdsouza committed May 18, 2018
1 parent 97d0ccb commit 15b1ba7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config-client-mgr/config_cassandra_client.cc
Expand Up @@ -1058,7 +1058,7 @@ bool ConfigCassandraPartition::StoreKeyIfUpdated(const string &uuid,
context.fq_name.end(), ' '), context.fq_name.end());
replace(context.fq_name.begin(), context.fq_name.end(), ',', ':');
}
} else if (adapter->key == "draft-mode-state" && !adapter->value.empty()) {
} else if (adapter->key == "draft_mode_state" && !adapter->value.empty()) {
context.ignore_object = true;
}
FieldDetailMap::iterator field_iter =
Expand Down

0 comments on commit 15b1ba7

Please sign in to comment.