salt icon indicating copy to clipboard operation
salt copied to clipboard

Human-readable expire in user.present

Open snago opened this issue 6 years ago • 2 comments

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.

snago avatar Jan 27 '20 08:01 snago

Is this still up for grabs?

SeymourPashayev avatar Jul 07 '20 19:07 SeymourPashayev

Would like to take this up, if no one's working on it.

sudo-k-runner avatar Oct 10 '20 22:10 sudo-k-runner