Fix match_hpa with multiple inventory providers 83/114183/1
authorkrishnaa96 <krishna.moorthy6@wipro.com>
Fri, 23 Oct 2020 06:23:53 +0000 (11:53 +0530)
committerkrishnaa96 <krishna.moorthy6@wipro.com>
Fri, 23 Oct 2020 07:22:17 +0000 (12:52 +0530)
commitb8ce22681bdff529644bbfaa40ed8c18370d685d
treecd35ab0dbac1c5de24b7d0448b096652b41d3fe8
parent3ebdc5d735b489e1bff986e2a57808efeab0f6b8
Fix match_hpa with multiple inventory providers

match_hpa is implemented only for AAI inventory
provider, but it was called using map_method
In order to avoid calling the inventories which
have not implemented it, lets create a method
"invoke_method" in the inventory provider which
will return None, if the method required is not
implemented.

Issue-ID: OPTFRA-864
Signed-off-by: krishnaa96 <krishna.moorthy6@wipro.com>
Change-Id: Idc49be08f10b23404024f9655900b15bc19776e4
conductor/conductor/data/plugins/inventory_provider/aai.py
conductor/conductor/data/plugins/inventory_provider/base.py
conductor/conductor/data/plugins/inventory_provider/hpa_utils.py
conductor/conductor/data/service.py
conductor/conductor/solver/utils/constraint_engine_interface.py
conductor/conductor/tests/unit/data/plugins/inventory_provider/test_aai.py
conductor/conductor/tests/unit/data/test_service.py