
from nova.compute import resource_tracker


class FakeResourceTracker(resource_tracker.ResourceTracker):
    """Version without a DB requirement."""

    def _create(self, context, values):
        self._write_ext_resources(values)
        self.compute_node = values
        self.compute_node['id'] = 1

    def _update(self, context):
        self._write_ext_resources(self.compute_node)


from nova.compute import resource_tracker


class FakeResourceTracker(resource_tracker.ResourceTracker):
    """Version without a DB requirement."""

    def _update(self, context):
        self._write_ext_resources(self.compute_node)

Remove an unused method in FakeResourceTracker
Remove an unused method in FakeResourceTracker

Nothing calls _create and there is no _create in the super class for
this to be overriding.

Change-Id: Ic41f2d249b9aaffb2caaa18dd492924a4ceb3653

  
  from nova.compute import resource_tracker
  
  
  class FakeResourceTracker(resource_tracker.ResourceTracker):
      """Version without a DB requirement."""
  
-     def _create(self, context, values):
-         self._write_ext_resources(values)
-         self.compute_node = values
-         self.compute_node['id'] = 1
- 
      def _update(self, context):
          self._write_ext_resources(self.compute_node)
  
Remove an unused method in FakeResourceTracker
## Code Before:

from nova.compute import resource_tracker


class FakeResourceTracker(resource_tracker.ResourceTracker):
    """Version without a DB requirement."""

    def _create(self, context, values):
        self._write_ext_resources(values)
        self.compute_node = values
        self.compute_node['id'] = 1

    def _update(self, context):
        self._write_ext_resources(self.compute_node)

## Instruction:
Remove an unused method in FakeResourceTracker
## Code After:

from nova.compute import resource_tracker


class FakeResourceTracker(resource_tracker.ResourceTracker):
    """Version without a DB requirement."""

    def _update(self, context):
        self._write_ext_resources(self.compute_node)
