From 007e21ae58d76be8750ee8093b77fbf71e45447d Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Fri, 13 Sep 2024 17:31:10 +0900 Subject: [PATCH] Remove redundant any2array (1) The vnic_type_prohibit_list parameter accepts arrays only, so it's not necessary to convert the value to an array. Change-Id: Ida51b09108afd1d8642ef09463b717ca7fa2fb2d --- manifests/plugins/ml2/ovs_driver.pp | 2 +- manifests/plugins/ml2/sriov_driver.pp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/plugins/ml2/ovs_driver.pp b/manifests/plugins/ml2/ovs_driver.pp index 10dde7c19..197153481 100644 --- a/manifests/plugins/ml2/ovs_driver.pp +++ b/manifests/plugins/ml2/ovs_driver.pp @@ -24,7 +24,7 @@ class neutron::plugins::ml2::ovs_driver ( ){ if !empty($vnic_type_prohibit_list) { neutron_plugin_ml2 { - 'ovs_driver/vnic_type_prohibit_list': value => join(any2array($vnic_type_prohibit_list), ','); + 'ovs_driver/vnic_type_prohibit_list': value => join($vnic_type_prohibit_list, ','); } } else { neutron_plugin_ml2 { diff --git a/manifests/plugins/ml2/sriov_driver.pp b/manifests/plugins/ml2/sriov_driver.pp index cba27ed86..4ad7e7ea9 100644 --- a/manifests/plugins/ml2/sriov_driver.pp +++ b/manifests/plugins/ml2/sriov_driver.pp @@ -24,7 +24,7 @@ class neutron::plugins::ml2::sriov_driver ( ){ if !empty($vnic_type_prohibit_list) { neutron_plugin_ml2 { - 'sriov_driver/vnic_type_prohibit_list': value => join(any2array($vnic_type_prohibit_list), ','); + 'sriov_driver/vnic_type_prohibit_list': value => join($vnic_type_prohibit_list, ','); } } else { neutron_plugin_ml2 {