From d744041931c2652c9bb492f04e3f035cbac18d1f Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Fri, 13 Sep 2024 17:35:20 +0900 Subject: [PATCH] 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 --- manifests/agents/ml2/macvtap.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/agents/ml2/macvtap.pp b/manifests/agents/ml2/macvtap.pp index 84823b8ca..10c7af813 100644 --- a/manifests/agents/ml2/macvtap.pp +++ b/manifests/agents/ml2/macvtap.pp @@ -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 {