Last use removed in 608e90eacda when AddInstanceDisk moved to wconfd.

Signed-off-by: Brian Foley <[email protected]>
---
 lib/config/__init__.py | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/lib/config/__init__.py b/lib/config/__init__.py
index 096b213..85c88ee 100644
--- a/lib/config/__init__.py
+++ b/lib/config/__init__.py
@@ -1643,19 +1643,6 @@ class ConfigWriter(object):
       raise errors.ConfigurationError("Cannot add '%s': UUID %s already"
                                       " in use" % (item.name, item.uuid))
 
-  def _CheckUUIDpresent(self, item):
-    """Checks that an object with the given UUID exists.
-
-    @param item: the instance or other UUID possessing object to verify that
-        its UUID is present
-
-    """
-    if not item.uuid:
-      raise errors.ConfigurationError("'%s' must have an UUID" % (item.name,))
-    if item.uuid not in self._AllIDs(include_temporary=False):
-      raise errors.ConfigurationError("Cannot replace '%s': UUID %s not 
present"
-                                      % (item.name, item.uuid))
-
   def _SetInstanceStatus(self, inst_uuid, status, disks_active,
                          admin_state_source):
     """Set the instance's status to a given value.
-- 
2.8.0.rc3.226.g39d4020

Reply via email to