Skip to content

state.single does not respect requirements #3527

@madduck

Description

@madduck

Consider the following CLI invocation:

# salt-call -l trace state.single file.managed /tmp/test require="{'pkg':'sudo'}" 2>&1 | grep sudo
root     11472  6530  0 Jan30 pts/2    00:00:00       sudo -i
root     29259 11473  0 10:51 pts/2    00:00:00           python /home/madduck/code/salt/scripts/salt-call -c /home/madduck/code/salt/local/etc/salt --no-color -l trace state.single file.managed /tmp/test require={'pkg':'sudo'}
root     29260 11473  0 10:51 pts/2    00:00:00           grep sudo

I think that Salt should not execute this state because its requirements
cannot be fulfilled. However, it seems that state.single does not care about
requirements.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions