Skip to content

Commit

Permalink
Added command to hide warnings from Ansible
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-variacode committed Oct 28, 2024
1 parent a30cec5 commit 0f483bf
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,15 @@ public String getNodeList() throws IOException, AnsibleException {
processAnsibleVault(stdinVariables, procArgs);
processLimit(procArgs);

procArgs.add("2>/dev/null");

String allCmd = String.join(" ", procArgs);

procArgs.clear();
procArgs.add("bash");
procArgs.add("-c");
procArgs.add(allCmd);

if(debug){
System.out.println("getNodeList " + procArgs);
}
Expand Down

0 comments on commit 0f483bf

Please sign in to comment.