Remove redundant any2array (2)

The physical_interface_mappings parameter accepts arrays only, so it's
not necessary to convert the value to an array.

Change-Id: I2cd53a2e2c55f77664c64166407c128ebf867f42
This commit is contained in:
Takashi Kajinami 2024-09-13 17:35:20 +09:00
parent 007e21ae58
commit d744041931

View File

@ -53,9 +53,9 @@ class neutron::agents::ml2::macvtap (
'securitygroup/firewall_driver': value => 'noop';
}
if size($physical_interface_mappings) > 0 {
if !empty($physical_interface_mappings) {
neutron_agent_macvtap {
'macvtap/physical_interface_mappings': value => join(any2array($physical_interface_mappings), ',');
'macvtap/physical_interface_mappings': value => join($physical_interface_mappings, ',');
}
} else {
neutron_agent_macvtap {