Skip to content

Commit 08c6e2e

Browse files
boltronicsdwoz
authored andcommitted
Remove reundant check in ssh_known_hosts.present
1 parent abf111f commit 08c6e2e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

salt/states/ssh_known_hosts.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,7 @@ def present(
153153

154154
if isinstance(result, dict) and "error" in result:
155155
ret["result"] = False
156-
if "error" in result:
157-
ret["comment"] = result["error"]
156+
ret["comment"] = result["error"]
158157
return ret
159158
if result == "exists":
160159
comment = f"Host {name} is already in {config}"

0 commit comments

Comments
 (0)