From 6c2c16a971d8594582bad3b136807fad0cce8030 Mon Sep 17 00:00:00 2001 From: JT Date: Thu, 17 Jun 2021 19:57:40 +1200 Subject: [PATCH] Add back disks and net to sys (#3639) --- crates/nu_plugin_sys/src/sys.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/nu_plugin_sys/src/sys.rs b/crates/nu_plugin_sys/src/sys.rs index de52eb422..4ec62ec6b 100644 --- a/crates/nu_plugin_sys/src/sys.rs +++ b/crates/nu_plugin_sys/src/sys.rs @@ -13,6 +13,7 @@ impl Sys { pub fn disks(sys: &mut System, tag: Tag) -> Option { 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 { pub fn net(sys: &mut System, tag: Tag) -> Option { sys.refresh_networks(); + sys.refresh_networks_list(); let mut output = vec![]; for (iface, data) in sys.get_networks() {