Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Add support for specifying arguments with a dictionary instead of having to specify them as a list of single key value dictionary items.

Instead of having the specify the arguments to a state module like:

id1:
  cmd.run:
    - name: echo testing
    - umask: '0'

support

id1:
  cmd.run:
    name: echo testing
    umask: '0'

When then state is written as python with the #!py python renderer instead of having the more verbose

"id1": {
    "cmd.run": [
        {"name": "echo testing"},
        {"umask": "0"},
    ]
}

it can be written more concisely and efficiently as

"id1": {
    "cmd.run": {
        "name": "echo testing",
        "umask": "0",
    }
}

This will make it easier for beginners trying to learn salt and reduces the number of data structures that have to be created.

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.