-
-
Notifications
You must be signed in to change notification settings - Fork 396
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validate inventory files with warnings (#1182)
Co-authored-by: simonhammes <[email protected]>
- Loading branch information
1 parent
004cd8e
commit f52ac49
Showing
4 changed files
with
97 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Variables names with a leading underscore are ignored | ||
_hosts = ["host-1", "host-2", "host-3"] | ||
|
||
# Dictionaries are not supported | ||
dict_hosts = { | ||
"host-1": "hostname", | ||
} | ||
|
||
# Generators are not supported | ||
generator_hosts = (host for host in ["host-1", "host-2"]) | ||
|
||
# https://github.com/pyinfra-dev/pyinfra/issues/662 | ||
issue_662 = ["a", "b", ({"foo": "bar"})] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters