-
Notifications
You must be signed in to change notification settings - Fork 5.6k
sls with empty output leads to "requisites were not found" #30971
Copy link
Copy link
Open
Labels
Corerelates to code central or existential to Saltrelates to code central or existential to SaltState-Compilerbugbroken, incorrect, or confusing behaviorbroken, incorrect, or confusing behaviorhelp-wantedCommunity help is needed to resolve thisCommunity help is needed to resolve thispending-community-assignmentPending community contributor assignmentPending community contributor assignmentseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work around3rd level, incorrect or bad functionality, confusing and lacks a work aroundtest:fullRun the full test suiteRun the full test suite
Milestone
Metadata
Metadata
Assignees
Labels
Corerelates to code central or existential to Saltrelates to code central or existential to SaltState-Compilerbugbroken, incorrect, or confusing behaviorbroken, incorrect, or confusing behaviorhelp-wantedCommunity help is needed to resolve thisCommunity help is needed to resolve thispending-community-assignmentPending community contributor assignmentPending community contributor assignmentseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work around3rd level, incorrect or bad functionality, confusing and lacks a work aroundtest:fullRun the full test suiteRun the full test suite
Type
Fields
Give feedbackNo fields configured for issues without a type.
Hi,
In this example I have two states, which retrieve some data from pillar.
One state is depend from another.
The error occurs when the first state doesn't get any data from pillar, so it produces zero output, and the second state fails with
The following requisites were not found: require: sls:The first state:
salt/repos/custom.sls:
The second state:
salt/packages/init.sls:
The second state is depend from the first, because I quite often deploy my private repositories and install custom packages which are depend from that private repositories.
Test's pillar data for the host:
When the first state (repos.custom) provide some output (I mean
{% for package, status in pillar.get('custompkgs', {}).items() %}) even without any changes, everything works fine.Fox example, if I add some data to the pillar:
everything works good.
Versions: