Skip to content

Commit

Permalink
Linter shows a false positive, ignoring manifest_whitespace_opening_b…
Browse files Browse the repository at this point in the history
…racket_before

Signed-off-by: Kibahop <[email protected]>
  • Loading branch information
kibahop authored and mattock committed Jan 23, 2023
1 parent e1b7e06 commit b384c71
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plans/update_host_keys.pp
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,14 @@
$rsa = $ipa_client.facts['ssh']['rsa']['key']
$dsa = $ipa_client.facts['ssh']['dsa']['key']

$ipa_host_mod_cmd = "ipa host-mod ${ipa_client.facts['fqdn']} --sshpubkey=\"${ed25519}\" --sshpubkey=\"${ecdsa}\" --sshpubkey=\"${rsa}\" --sshpubkey=\"${dsa}\" --updatedns"
$ipa_host_mod_cmd = "ipa host-mod ${ipa_client.facts['fqdn']} --sshpubkey=\"${ed25519}\" --sshpubkey=\"${ecdsa}\" --sshpubkey=\"${rsa}\" --sshpubkey=\"${dsa}\" --updatedns" # lint:ignore:140chars

if $noop {
out::message("No-op: would run \"${ipa_host_mod_cmd}\" on IPA server")
} else {
$ipa_host_mod_resultset = run_command($ipa_host_mod_cmd, $ipa_server, '_catch_errors' => true) ['stdout','stderr'].each | $output | {
# lint:ignore:manifest_whitespace_opening_bracket_before # lint:ignore:140chars
$ipa_host_mod_resultset = run_command($ipa_host_mod_cmd, $ipa_server, '_catch_errors' => true) ['stdout','stderr'].each |$output| {
# lint:endignore
out::message($ipa_host_mod_resultset.first.value[$output])
}
}
Expand Down

0 comments on commit b384c71

Please sign in to comment.