Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Support truthy values in boolean unit options #1108

@bcwaldon

Description

@bcwaldon

The Global option is lower-cased then checked directly against true [0], while systemd units accept "truthy" values (yes, on, 1, t) [1]. fleet should follow suit and accept the same truthy values when parsing boolean options.

[0]

return strings.ToLower(last) == "true"

[1] http://www.freedesktop.org/software/systemd/man/systemd.unit.html#Description

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions