saltstack/salt

Human-readable expire in user.present

Open

#55.983 geöffnet am 27. Jan. 2020

Auf GitHub ansehen
 (2 Kommentare) (4 Reaktionen) (0 zugewiesene Personen)Python (5.508 Forks)batch import
Featuregood first issue

Repository-Metriken

Stars
 (13.710 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 72T 6h) (221 gemergte PRs in 30 T)

Beschreibung

According to user.present documentation the expire property of user.present should be specified as an integer as

Date that account expires, represented in days since epoch (January 1, 1970)

To make it more human-readable I want to be able to specify it as a string with an ISO 8601 date (e.g. "2020-01-27").

Instead of:

foo-expires:
  user.present:
    - name: foo
    - expire: 18288

I would like to be able to have:

foo-expires:
  user.present:
    - name: foo
    - expire: 2020-01-27

That would make it much easier to understand when a user expires.

Contributor Guide