BUG#: 8548
authorvenkat.puvvada <venkat.puvvada>
Sat, 27 Jun 2009 04:46:56 +0000 (04:46 +0000)
committervenkat.puvvada <venkat.puvvada>
Sat, 27 Jun 2009 04:46:56 +0000 (04:46 +0000)
TITLE: repupgrade command fails to create a new repository
DESCRIPTION:

src/Clients/repupgrade/RepositoryUpgrade.cpp

index 66e4a4d47ac7ce70c8f2a8e0a4956c6dc2683b3f..f963258a2595344234e130ec331b6be09339d9ce 100644 (file)
@@ -1000,7 +1000,8 @@ void RepositoryUpgrade::_updateSystemNameKeyProperty()
             }
         }
     }
-    // Now update Object Manager.
+
+    // Now try to update Object Manager instance in the interop namespace.
     try
     {
         _updateSystemNameKeyPropertyOfInstancesForClass(
@@ -1010,9 +1011,10 @@ void RepositoryUpgrade::_updateSystemNameKeyProperty()
     catch (const CIMException& e)
     {
         //
-        // Some namespaces may not include the object manager class
+        // Interop namespace or object manager class may not exist
         //
-        if (e.getCode () != CIM_ERR_INVALID_CLASS)
+        if (e.getCode() != CIM_ERR_INVALID_CLASS &&
+            e.getCode() != CIM_ERR_INVALID_NAMESPACE)
         {
 #ifdef REPUPGRADE_DEBUG
             cout << "Exception caught in attempting to update "