ceph_reweight.pl: wrap variable with sprintf, now it works with system()
This commit is contained in:
@@ -39,7 +39,7 @@ if (defined($ARGV[0]) and ($ARGV[0] eq '--do-it')) {
|
||||
if (defined($ARGV[1])) {
|
||||
help () if ($ARGV[1] ne '--dry');
|
||||
} else {
|
||||
system('ceph', 'osd', 'reweght', $osd->{'id'}, $new_weight);
|
||||
system('ceph', 'osd', 'reweght', sprintf("%d", $osd->{'id'}), sprintf("%f", $new_weight));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user