engine: resources: Add another validation check

This simple check should prevent some silly mistakes and make the logic
easier for other parts of the code that won't have to worry about this
pattern.
This commit is contained in:
James Shubin
2019-09-08 04:43:56 -04:00
parent 0c9e8cc50e
commit 9788411995
3 changed files with 4 additions and 4 deletions

View File

@@ -21,8 +21,6 @@ resources:
state: exists
- name: file4
path: "/tmp/mgmt/f4"
content: |
i am f4 and i should not be here
state: absent
- name: dir1
path: "/tmp/mgmt/dir1/"

View File

@@ -21,8 +21,6 @@ resources:
state: exists
- name: file4
path: "/tmp/mgmt/f4"
content: |
i am f4 and i should not be here
state: absent
edges:
- name: e1