[salt-ssh] Add a check for host in /etc/salt/roster #22332
Labels
Bug
broken, incorrect, or confusing behavior
Core
relates to code central or existential to Salt
fixed-pls-verify
fix is linked, bug author to confirm fix
P3
Priority 3
Salt-SSH
severity-low
4th level, cosemtic problems, work around exists
Milestone
If you have a syntax error in your roster file for salt-ssh, such as a missing space after
host
such ashost:111.222.333.444
instead ofhost: 111.222.333.444
, you get the following error:YAML is probably treating the whole string as a key, so it's
host:111.222.333.444: None
or something like that.There should be a check for host since it's a required member of the roster dictionary, and then provide a more helpful message if host isn't there, or you've mistyped something like this.
ping @basepi
The text was updated successfully, but these errors were encountered: