Fix grant usage in scaling out
In current implementation, the grant information must be
used when trying to scale out VNF that has a VDU
that is not deployed initially.
But the grant usage should be optional, and so this patch
changes it to be optional.
Closes-Bug:
@@ -2001,6 +2001,7 @@ class OpenStack(abstract_driver.VnfAbstractDriver,
param, additional_param, request_type="scale")
paramDict = stack_param
+ if 'grant' in vnf_info.keys():
grant = vnf_info['grant']
for addrsc in grant.add_resources:
for zone in grant.zones:
