From d4f70470b7c3af89d4bf97123f4d61ad8a58805b Mon Sep 17 00:00:00 2001 From: Chad Smith Date: Tue, 10 Oct 2017 12:58:19 -0600 Subject: simpletable: Fix get_string method to return table-formatted string Output in cloud-init-output.log contained only the string representation of a SimpleTable object instead of the table formatted content. This bug also affected ssh_authkey_fingerprints. LP: #1722566 --- cloudinit/simpletable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cloudinit/simpletable.py') diff --git a/cloudinit/simpletable.py b/cloudinit/simpletable.py index 90603228..ca663cce 100644 --- a/cloudinit/simpletable.py +++ b/cloudinit/simpletable.py @@ -59,4 +59,4 @@ class SimpleTable(object): return '\n'.join(lines) def get_string(self): - return repr(self) + return self.__str__() -- cgit v1.2.3