File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1453,9 +1453,13 @@ function delete_probe {
14531453function setup_neutron_debug {
14541454 if [[ " $Q_USE_DEBUG_COMMAND " == " True" ]]; then
14551455 public_net_id=` _get_net_id $PUBLIC_NETWORK_NAME `
1456- neutron-debug --os-tenant-name admin --os-username admin --os-password $ADMIN_PASSWORD probe-create --device-owner compute $public_net_id
1456+ if [[ -n $public_net_id ]]; then
1457+ neutron-debug --os-tenant-name admin --os-username admin --os-password $ADMIN_PASSWORD probe-create --device-owner compute $public_net_id
1458+ fi
14571459 private_net_id=` _get_net_id $PRIVATE_NETWORK_NAME `
1458- neutron-debug --os-tenant-name admin --os-username admin --os-password $ADMIN_PASSWORD probe-create --device-owner compute $private_net_id
1460+ if [[ -n $private_net_id ]]; then
1461+ neutron-debug --os-tenant-name admin --os-username admin --os-password $ADMIN_PASSWORD probe-create --device-owner compute $private_net_id
1462+ fi
14591463 fi
14601464}
14611465
You can’t perform that action at this time.
0 commit comments