summaryrefslogtreecommitdiff
path: root/cloudinit/simpletable.py
diff options
context:
space:
mode:
authorChad Smith <chad.smith@canonical.com>2017-10-10 12:58:19 -0600
committerChad Smith <chad.smith@canonical.com>2017-10-10 12:58:19 -0600
commitd4f70470b7c3af89d4bf97123f4d61ad8a58805b (patch)
tree380ae0d12c9aec39f0ea05d600d6031ae58ceb46 /cloudinit/simpletable.py
parent45d361cb0b7f5e4e7d79522bd285871898358623 (diff)
downloadvyos-cloud-init-d4f70470b7c3af89d4bf97123f4d61ad8a58805b.tar.gz
vyos-cloud-init-d4f70470b7c3af89d4bf97123f4d61ad8a58805b.zip
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
Diffstat (limited to 'cloudinit/simpletable.py')
-rw-r--r--cloudinit/simpletable.py2
1 files changed, 1 insertions, 1 deletions
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__()