Commit aa089b65 authored by Iustin Pop's avatar Iustin Pop
Browse files

burnin: only call self.GrowDisks() if needed

In case we pass --disk-grow 0[,0..] then we should not call GrowDisks as it
prints confusing log lines.

Reviewed-by: imsnah
parent cfcc5c6d
......@@ -689,7 +689,8 @@ class Burner(object):
opts.disk_template in constants.DTS_NET_MIRROR) :
if opts.disk_template != constants.DT_DISKLESS:
if (opts.disk_template != constants.DT_DISKLESS and
utils.any(self.disk_growth, lambda n: n > 0)):
if opts.do_failover and opts.disk_template in constants.DTS_NET_MIRROR:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment