BUG#: 7951
authors.manicka <s.manicka>
Wed, 1 Oct 2008 17:09:58 +0000 (17:09 +0000)
committers.manicka <s.manicka>
Wed, 1 Oct 2008 17:09:58 +0000 (17:09 +0000)
TITLE: Duplicate CIM_CIMXMLCommunicationmechanism instances.

DESCRIPTION:

src/Pegasus/ControlProviders/InteropProvider/Server.cpp

index ad261ea15aa64f8ea0be4010effdaef5ddf06a62..81e7ba9f7cab5cb05a12e41bc51b78e876fa7286 100644 (file)
@@ -186,8 +186,13 @@ CIMInstance InteropProvider::buildCIMXMLCommunicationMechanismInstance(
         PEGASUS_CLASSNAME_PG_CIMXMLCOMMUNICATIONMECHANISM.getString());
 
     // Name Property
+    String nameProperty(STRLIT_ARGS("PEGASUSCOMM"));
+    nameProperty.append(namespaceType);
+    nameProperty.append(Char16('+'));
+    nameProperty.append(IPAddress);
+
     setPropertyValue(instance, CIMXMLCOMMMECH_PROPERTY_NAME,
-        (String("PEGASUSCOMM") + namespaceType));
+        nameProperty);
 
     // CommunicationMechanism Property - Force to 2.
     setPropertyValue(instance, CIMXMLCOMMMECH_PROPERTY_COMMUNICATIONMECHANISM,