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:
@@ -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')
|
||||
|
||||
|
Reference in New Issue
Block a user