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() {