Skip to content

Commit

Permalink
Update powerdns.py to use 'list' instead of 'show *'
Browse files Browse the repository at this point in the history
  • Loading branch information
samburney authored Apr 13, 2024
1 parent 80d6ac6 commit 9010682
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snmp/powerdns.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
pdnscontrol = "/usr/bin/pdns_control"

process = subprocess.Popen(
[pdnscontrol, "show", "*"], stdout=subprocess.PIPE, stderr=subprocess.PIPE
[pdnscontrol, "list"], stdout=subprocess.PIPE, stderr=subprocess.PIPE
)
input = process.communicate()
stdout = input[0].decode()
Expand Down

0 comments on commit 9010682

Please sign in to comment.