We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abf111f commit 08c6e2eCopy full SHA for 08c6e2e
salt/states/ssh_known_hosts.py
@@ -153,8 +153,7 @@ def present(
153
154
if isinstance(result, dict) and "error" in result:
155
ret["result"] = False
156
- if "error" in result:
157
- ret["comment"] = result["error"]
+ ret["comment"] = result["error"]
158
return ret
159
if result == "exists":
160
comment = f"Host {name} is already in {config}"
0 commit comments