Add back disks and net to sys (#3639)

This commit is contained in:
JT 2021-06-17 19:57:40 +12:00 committed by GitHub
parent 955a5ed8fb
commit 6c2c16a971
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,6 +13,7 @@ impl Sys {
pub fn disks(sys: &mut System, tag: Tag) -> Option<UntaggedValue> {
sys.refresh_disks();
sys.refresh_disks_list();
let mut output = vec![];
for disk in sys.get_disks() {
@ -43,6 +44,7 @@ pub fn disks(sys: &mut System, tag: Tag) -> Option<UntaggedValue> {
pub fn net(sys: &mut System, tag: Tag) -> Option<UntaggedValue> {
sys.refresh_networks();
sys.refresh_networks_list();
let mut output = vec![];
for (iface, data) in sys.get_networks() {