Skip to content

Don't Depend on GNU Date #4357

@holmanb

Description

@holmanb

#4347 added support for cloud-init analyze dump on FreeBSD, which might not have GNU Date installed. This raises the point that shelling out once per line isn't efficient, and this is something that we should be able to do in Python code. This will improve portability as well.

The codepath that uses date isn't actually taken on Ubuntu. If possible it might be best to transitionally log a warning anytime parse_timestamp_from_date() is called to gather the date format so that we can implement this in Python.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working correctlygood first issuehacktoberfestIssues to be completed during Hacktoberfest. Curated list of good first issue tags.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions