Fix update_provider_tree signature in reference docs

The migration guide for porting from old methods to upt
was missing the allocations kwarg in the code samples.

Change-Id: I43fd8d5eeb382d1e5472fa4e9a2f01bd0e4bf243
This commit is contained in:
Matt Riedemann
2019-06-25 12:46:07 -04:00
parent 91647a9b71
commit c9ed708d87

View File

@@ -175,7 +175,7 @@ would become:
.. code::
def update_provider_tree(self, provider_tree, nodename):
def update_provider_tree(self, provider_tree, nodename, allocations=None):
inv_data = {
'VCPU': { ... },
'MEMORY_MB': { ... },
@@ -206,7 +206,7 @@ would become:
.. code::
def update_provider_tree(self, provider_tree, nodename):
def update_provider_tree(self, provider_tree, nodename, allocations=None):
provider_tree.add_traits(
nodename, 'HW_CPU_X86_AVX', 'HW_CPU_X86_AVX2', 'CUSTOM_GOLD')