Skip to content

Commit

Permalink
update name of package_updates cloud-init module
Browse files Browse the repository at this point in the history
  • Loading branch information
craddm committed Mar 14, 2024
1 parent d864d95 commit 58a85bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def main():

# Get package install/update time
with suppress(IndexError):
end_entries = list(filter(lambda x: x["event_type"] == "finish" and x["name"] == "modules-final/config-package-update-upgrade-install", cloud_init_log_events))
end_entries = list(filter(lambda x: x["event_type"] == "finish" and x["name"] == "modules-final/config-package_update_upgrade_install", cloud_init_log_events))
if end_entries:
events.append({"timestamp": datetime.fromtimestamp(end_entries[0]["timestamp"]), "level": end_entries[0]["result"], "message": "Installing/updating Ubuntu packages"})
else:
Expand Down

0 comments on commit 58a85bc

Please sign in to comment.