lordgamez commented on code in PR #1316:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1316#discussion_r859602656
##########
libminifi/src/core/yaml/YamlConfiguration.cpp:
##########
@@ -908,6 +914,14 @@ YAML::Node YamlConfiguration::getOptionalField(const
YAML::Node& yamlNode, const
return result;
}
+void YamlConfiguration::addNewId(const std::string& uuid) {
+ if (uuids_.find(uuid) != uuids_.end()) {
+ throw Exception(ExceptionType::GENERAL_EXCEPTION, "UUID " + uuid + " is
duplicated in the flow configuration");
+ }
+
+ uuids_.insert(uuid);
Review Comment:
Good idea, updated in 33c6c28c702f72e67add5c9dfd318020019a1788
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]