info: properly report default when for overridden variants (#32040)
This commit is contained in:
parent
5e57677140
commit
f96b54b0a6
@ -145,10 +145,8 @@ def lines(self):
|
|||||||
name = textwrap.wrap(
|
name = textwrap.wrap(
|
||||||
"{0} [{1}]".format(k, self.default(v)), width=self.column_widths[0]
|
"{0} [{1}]".format(k, self.default(v)), width=self.column_widths[0]
|
||||||
)
|
)
|
||||||
if len(w) == 1:
|
if all(spec == spack.spec.Spec() for spec in w):
|
||||||
w = w[0]
|
w = "--"
|
||||||
if w == spack.spec.Spec():
|
|
||||||
w = "--"
|
|
||||||
when = textwrap.wrap(str(w), width=self.column_widths[1])
|
when = textwrap.wrap(str(w), width=self.column_widths[1])
|
||||||
allowed = v.allowed_values.replace("True, False", "on, off")
|
allowed = v.allowed_values.replace("True, False", "on, off")
|
||||||
allowed = textwrap.wrap(allowed, width=self.column_widths[2])
|
allowed = textwrap.wrap(allowed, width=self.column_widths[2])
|
||||||
|
Loading…
Reference in New Issue
Block a user