From 434125ce945170c711c95deb857bf1d06300cd0c Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 4 Jun 2019 06:35:00 +0200 Subject: [PATCH] import run_command Signed-off-by: Thomas Lamprecht --- PVE/Network/Network.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/PVE/Network/Network.pm b/PVE/Network/Network.pm index 3a33ecd..27c30b9 100644 --- a/PVE/Network/Network.pm +++ b/PVE/Network/Network.pm @@ -2,9 +2,11 @@ package PVE::Network::Network; use strict; use warnings; + use Data::Dumper; use JSON; -use PVE::Tools qw(extract_param dir_glob_regex); + +use PVE::Tools qw(extract_param dir_glob_regex run_command); use PVE::Cluster qw(cfs_read_file cfs_write_file cfs_lock_file); use PVE::Network::Network::Plugin; use PVE::Network::Network::VnetPlugin; @@ -75,7 +77,7 @@ sub status { }; eval { - PVE::Tools::run_command($cmd, outfunc => $code, errfunc => $code); + run_command($cmd, outfunc => $code, errfunc => $code); }; my $resultjson = JSON::decode_json($result); -- 2.39.5