Fix os_swift_sync role's set_weight

The swift_rings.py file that updates the swift ring files are
failing to update the weight in a builder file. This is caused
by the weight passed into the swift-ring-builder CLI needing
to be a string.

This patch converts the weight to a string when passing it to
swift-ring-builder.

Closes-Bug: #1532204
Change-Id: Iceb3f19eb226fdcfd373fa73d8a5d41b41a239af
This commit is contained in:
Matthew Oliver 2016-01-08 13:06:22 +11:00 committed by Bjoern Teipel
parent 80f0c85ada
commit 1f45a2736a

View File

@ -72,7 +72,7 @@ def create_buildfile(build_file, part_power, repl, min_part_hours,
def change_host_weight(build_file, host_search_str, weight):
run_and_wait(rb_main, ["swift-ring-builder", build_file, "set_weight",
host_search_str, weight])
host_search_str, str(weight)])
def remove_host_from_ring(build_file, host):