diff options
author | Daniel Watkins <oddbloke@ubuntu.com> | 2020-07-13 12:00:32 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-13 12:00:32 -0400 |
commit | 3cec3881062490727c5fff1b16b53f0176f976f0 (patch) | |
tree | a26576249a456556bfe2557d273af5192bd41985 /cloudinit/analyze | |
parent | fecbd81889011e8a75badd18935297f3494fe485 (diff) | |
download | vyos-cloud-init-3cec3881062490727c5fff1b16b53f0176f976f0.tar.gz vyos-cloud-init-3cec3881062490727c5fff1b16b53f0176f976f0.zip |
cloudinit: remove global disable of pylint W0105 and fix errors (#480)
This includes a fix to a test that had a string concatenation issue, and
so was only testing a prefix of what was intended.
Diffstat (limited to 'cloudinit/analyze')
-rw-r--r-- | cloudinit/analyze/show.py | 41 |
1 files changed, 19 insertions, 22 deletions
diff --git a/cloudinit/analyze/show.py b/cloudinit/analyze/show.py index cca1fa7f..0c825b23 100644 --- a/cloudinit/analyze/show.py +++ b/cloudinit/analyze/show.py @@ -15,28 +15,25 @@ from cloudinit import subp from cloudinit import util from cloudinit.distros import uses_systemd -# An event: -''' -{ - "description": "executing late commands", - "event_type": "start", - "level": "INFO", - "name": "cmd-install/stage-late" - "origin": "cloudinit", - "timestamp": 1461164249.1590767, -}, - - { - "description": "executing late commands", - "event_type": "finish", - "level": "INFO", - "name": "cmd-install/stage-late", - "origin": "cloudinit", - "result": "SUCCESS", - "timestamp": 1461164249.1590767 - } - -''' +# Example events: +# { +# "description": "executing late commands", +# "event_type": "start", +# "level": "INFO", +# "name": "cmd-install/stage-late" +# "origin": "cloudinit", +# "timestamp": 1461164249.1590767, +# } +# { +# "description": "executing late commands", +# "event_type": "finish", +# "level": "INFO", +# "name": "cmd-install/stage-late", +# "origin": "cloudinit", +# "result": "SUCCESS", +# "timestamp": 1461164249.1590767 +# } + format_key = { '%d': 'delta', '%D': 'description', |