> **Note**
>
-> Colons (:) are not permitted in object names.
+> Exclamation marks (!) are not permitted in object names.
Each object is uniquely identified by its type (`Host`) and name
(`host1.example.org`). Objects can contain a comma-separated list of
item->SetType($3);
- if (strchr($4, ':') != NULL) {
+ if (strchr($4, '!') != NULL) {
std::ostringstream msgbuf;
- msgbuf << "Name for object '" << $4 << "' of type '" << $3 << "' is invalid: Object names may not contain ':'";
+ msgbuf << "Name for object '" << $4 << "' of type '" << $3 << "' is invalid: Object names may not contain '!'";
free($3);
BOOST_THROW_EXCEPTION(std::invalid_argument(msgbuf.str()));
}
ObjectLock olock(service_descriptions);
BOOST_FOREACH(const Dictionary::Pair& kv, service_descriptions) {
std::ostringstream namebuf;
- namebuf << GetName() << ":" << kv.first;
+ namebuf << GetName() << "!" << kv.first;
String name = namebuf.str();
std::vector<String> path;
BOOST_FOREACH(const Dictionary::Pair& kv, descs) {
std::ostringstream namebuf;
- namebuf << GetName() << ":" << kv.first;
+ namebuf << GetName() << "!" << kv.first;
String name = namebuf.str();
std::vector<String> path;
BOOST_FOREACH(const Dictionary::Pair& kv, descs) {
std::ostringstream namebuf;
- namebuf << GetName() << ":" << kv.first;
+ namebuf << GetName() << "!" << kv.first;
String name = namebuf.str();
std::vector<String> path;