Skip to content

Commit

Permalink
Merge pull request #114 from Palollo/patch-1
Browse files Browse the repository at this point in the history
Fix error when infrastructure without IP
  • Loading branch information
micafer authored Jul 2, 2024
2 parents 2f45a05 + da9980b commit c15c60e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ec3
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def dump_table(l, order, align={}):
widths = dict([ (f, max([ len(str(d[f])) for d in l ] + [len(f)])+2) for f in order ])
o = [ "".join([ "{0: ^{width}}".format(f, width=widths[f]) for f in order ]) ]
o.append("-"*sum(widths.values()))
o.extend([ "".join([ "{0: {a}{width}}".format(d[f], a=align.get(f, "^"), width=widths[f]) for f in order ])
o.extend([ "".join([ "{0: {a}{width}}".format(str(d[f]), a=align.get(f, "^"), width=widths[f]) for f in order ])
for d in l ])
return "\n".join(o)

Expand Down

0 comments on commit c15c60e

Please sign in to comment.