Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Human-readable expire in user.present #55983

Open
snago opened this issue Jan 27, 2020 · 2 comments
Open

Human-readable expire in user.present #55983

snago opened this issue Jan 27, 2020 · 2 comments
Labels
Feature new functionality including changes to functionality and code refactors, etc. good first issue good for someone new to salt
Projects
Milestone

Comments

@snago
Copy link

snago commented Jan 27, 2020

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.

@Akm0d Akm0d added Feature new functionality including changes to functionality and code refactors, etc. Low-Hanging Fruit labels Jan 27, 2020
@Akm0d Akm0d added this to Considering in Sodium Jan 27, 2020
@Akm0d Akm0d added this to the Approved milestone Jan 27, 2020
@sagetherage sagetherage removed this from Considering in Sodium May 5, 2020
@sagetherage sagetherage added good first issue good for someone new to salt and removed Low-Hanging Fruit labels May 23, 2020
@SeymourPashayev
Copy link

Is this still up for grabs?

@sudo-k-runner
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature new functionality including changes to functionality and code refactors, etc. good first issue good for someone new to salt
Projects
No open projects
Magnesium
  
Awaiting triage
Development

No branches or pull requests

5 participants