Fix missing argument of builder_file_path
The change63688a14e5introduced 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 commit350778570c) (cherry picked from commite7d560738d)
This commit is contained in:
		| @@ -221,7 +221,7 @@ class Puppet::Provider::SwiftRingBuilder < Puppet::Provider | |||||||
|  |  | ||||||
|   def weight=(weight) |   def weight=(weight) | ||||||
|     swift_ring_builder( |     swift_ring_builder( | ||||||
|       builder_file_path, |       builder_file_path(policy_index), | ||||||
|       'set_weight', |       'set_weight', | ||||||
|       "d#{ring[device_path][:id]}", |       "d#{ring[device_path][:id]}", | ||||||
|       resource[:weight] |       resource[:weight] | ||||||
| @@ -251,7 +251,7 @@ class Puppet::Provider::SwiftRingBuilder < Puppet::Provider | |||||||
|  |  | ||||||
|   def meta=(meta) |   def meta=(meta) | ||||||
|     swift_ring_builder( |     swift_ring_builder( | ||||||
|       builder_file_path, |       builder_file_path(policy_index), | ||||||
|       'set_info', |       'set_info', | ||||||
|       "d#{ring[device_path][:id]}", |       "d#{ring[device_path][:id]}", | ||||||
|       "_#{resource[:meta]}" |       "_#{resource[:meta]}" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Takashi Kajinami
					Takashi Kajinami