Check return value of get subnets before iterate for ironic
With the update of openstack clients within heat image:
openstack client >= 4.0.0
neutron client >= 6.14.0
neturon lib >= 1.29.1
The command 'openstack network show ${network} -f value -c subnets'
returns '[]' instead of null string if no subnets found in the
specific network. This commit adds a check logic to avoid subsequent
command returns error by using '[]' as subnet input.
Reviewed: https:/ /review. opendev. org/698619 /git.openstack. org/cgit/ starlingx/ openstack- armada- app/commit/ ?id=a4503a28acd 30ca640821ec884 100c614cab8cb4
Committed: https:/
Submitter: Zuul
Branch: master
commit a4503a28acd30ca 640821ec884100c 614cab8cb4
Author: Mingyuan Qi <email address hidden>
Date: Thu Dec 12 02:41:34 2019 +0000
Check return value of get subnets before iterate for ironic
With the update of openstack clients within heat image:
openstack client >= 4.0.0
neutron client >= 6.14.0
neturon lib >= 1.29.1
The command 'openstack network show ${network} -f value -c subnets'
returns '[]' instead of null string if no subnets found in the
specific network. This commit adds a check logic to avoid subsequent
command returns error by using '[]' as subnet input.
Change-Id: I695e504518e1c8 84c7d66ecc94c9f a8787ce9752
Closes-Bug: 1855319
Signed-off-by: Mingyuan Qi <email address hidden>