Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
RDruon committed Aug 2, 2023
1 parent 5e607d0 commit b01ab31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async fn main() {
output.append(&mut lctl_output);

let lnetctl = Command::new("sudo")
.args(["lnetctl", "net", "show", "-v", "4"])
.args(["/usr/sbin/lnetctl", "net", "show", "-v", "4"])
.kill_on_drop(true)
.output()
.await?;
Expand All @@ -47,7 +47,7 @@ async fn main() {
output.append(&mut lnetctl_output);

let lnetctl_stats_output = Command::new("sudo")
.args(["lnetctl", "stats", "show"])
.args(["/usr/sbin/lnetctl", "stats", "show"])
.kill_on_drop(true)
.output()
.await?;
Expand Down
2 changes: 1 addition & 1 deletion sudoers_file/prometheus
Original file line number Diff line number Diff line change
@@ -1 +1 @@
prometheus ALL=(ALL) NOPASSWD: /usr/sbin/lnetctl
prometheus ALL=(ALL) NOPASSWD: /usr/sbin/lnetctl net show -v 4, /usr/sbin/lnetctl stats show

0 comments on commit b01ab31

Please sign in to comment.