Remove unnecessary default provider_tree when getting traits

I15364d37fb7426f4eec00ca4eaf99bec50e964b6 introduced a new
_get_traits() method in ResourceTracker for getting traits from a
provider tree and then merging with capability traits from the driver.
However it included a default of None for the provider_tree parameter
which was a remnant of earlier iterations of that change.  Since this
method is always passed a ProviderTree, remove the superfluous default
of None.

Change-Id: I1868485912d9a8a330bde50836808accf04c728d
This commit is contained in:
Adam Spiers 2019-03-18 20:16:00 +00:00
parent 926e584136
commit c29f7026ca
1 changed files with 1 additions and 1 deletions

View File

@ -917,7 +917,7 @@ class ResourceTracker(object):
return True
return False
def _get_traits(self, nodename, provider_tree=None):
def _get_traits(self, nodename, provider_tree):
# Get the traits from the ProviderTree which will be the set
# of virt-owned traits plus any externally defined traits set
# on the provider that aren't owned by the virt driver.