Browse Source

fix custom hostname

The l2.pp makes mistakes when finds neutron node if node has custom
nodename. Fix it.

Change-Id: I4cb984b760b056a5ab2583bcf6d44d4a8c385e8a
Closes-bug: #1590403
Igor Gajsin 2 years ago
parent
commit
aa23019b33
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      deployment_scripts/puppet/modules/vmware_dvs/manifests/l2.pp

+ 1
- 1
deployment_scripts/puppet/modules/vmware_dvs/manifests/l2.pp View File

@@ -119,7 +119,7 @@ class vmware_dvs::l2 {
119 119
       enabled                    => true,
120 120
     }
121 121
 
122
-    if $node_name in keys($neutron_nodes) {
122
+    if str2bool(inline_template('<%= @neutron_nodes.values.keep_if {|h| h["name"] == @node_name}.length > 0%>')) {
123 123
       if $neutron_server_enable {
124 124
         $service_ensure = 'running'
125 125
       } else {

Loading…
Cancel
Save