Browse Source

Fix missing argument of builder_file_path

The change 63688a14e5 introduced support
of storage policies and since the change was merged builder_file_path
takes one argument which is policy_index .

This change fixes the function call without argument to avoid failure
caused by missing argument.

Closes-Bug: #1949334
Change-Id: I987a37cb0606b6c217f906fbae17a765e40f4580
(cherry picked from commit 350778570c)
(cherry picked from commit e7d560738d)
(cherry picked from commit a8dc75e183)
(cherry picked from commit 131ac86b48)
(cherry picked from commit edfaa3546a)
changes/41/816241/1
Takashi Kajinami 7 months ago
parent
commit
1c1cb38c70
  1. 4
      lib/puppet/provider/swift_ring_builder.rb

4
lib/puppet/provider/swift_ring_builder.rb

@ -222,7 +222,7 @@ class Puppet::Provider::SwiftRingBuilder < Puppet::Provider
def weight=(weight)
swift_ring_builder(
builder_file_path,
builder_file_path(policy_index),
'set_weight',
"d#{ring[device_path][:id]}",
resource[:weight]
@ -252,7 +252,7 @@ class Puppet::Provider::SwiftRingBuilder < Puppet::Provider
def meta=(meta)
swift_ring_builder(
builder_file_path,
builder_file_path(policy_index),
'set_info',
"d#{ring[device_path][:id]}",
"_#{resource[:meta]}"

Loading…
Cancel
Save