diff options
author | Brett Holman <brett.holman@canonical.com> | 2023-03-03 14:00:16 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-03 15:00:16 -0600 |
commit | b728b4e7cda8643c83d5c390411995f759cf97fa (patch) | |
tree | c8498433b5de4dbf775dd09da0a72e44f6e385c2 /cloudinit/analyze | |
parent | 4896402b2b0acb59646fff9d49e57b084d22d1b0 (diff) | |
download | cloud-init-git-b728b4e7cda8643c83d5c390411995f759cf97fa.tar.gz |
Remove dead code (#2038)
Diffstat (limited to 'cloudinit/analyze')
-rw-r--r-- | cloudinit/analyze/show.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/cloudinit/analyze/show.py b/cloudinit/analyze/show.py index 8ce649de..8d5866e3 100644 --- a/cloudinit/analyze/show.py +++ b/cloudinit/analyze/show.py @@ -4,7 +4,6 @@ # # This file is part of cloud-init. See LICENSE file for license information. -import base64 import datetime import json import os @@ -66,20 +65,6 @@ def format_record(msg, event): return msg.format(**event) -def dump_event_files(event): - content = dict((k, v) for k, v in event.items() if k not in ["content"]) - files = content["files"] - saved = [] - for f in files: - fname = f["path"] - fn_local = os.path.basename(fname) - fcontent = base64.b64decode(f["content"]).decode("ascii") - util.write_file(fn_local, fcontent) - saved.append(fn_local) - - return saved - - def event_name(event): if event: return event.get("name") |