Force bond interfaces to be a plain array
authorTom Hughes <tom@compton.nu>
Wed, 20 Mar 2019 08:55:37 +0000 (08:55 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 20 Mar 2019 08:55:37 +0000 (08:55 +0000)
cookbooks/networking/recipes/default.rb

index e89064d6821d116b1f65d6b33bdd123627e4691f..068e0edf23496052bbb5085f1b323cf005c42d06 100644 (file)
@@ -69,7 +69,7 @@ node[:networking][:interfaces].each do |name, interface|
           "accept-ra" => false,
           "addresses" => [],
           "routes" => [],
-          "interfaces" => interface[:bond][:slaves],
+          "interfaces" => interface[:bond][:slaves].to_a,
           "mode" => interface[:bond][:mode] || "active-backup",
           "primary" => interface[:bond][:slaves].first,
           "mii-monitor-interval" => interface[:bond][:miimon] || 100,