From 5205daf7edf501fa2279796b00e8fd8ea94a470b Mon Sep 17 00:00:00 2001 From: Brian Read Date: Fri, 15 Nov 2024 17:28:13 +0000 Subject: [PATCH] Add use esmith::util::network into controler files --- Templates/controller.pm.tem | 1 + Templates/custom.pm.tem | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Templates/controller.pm.tem b/Templates/controller.pm.tem index c398ec7..8352ae8 100644 --- a/Templates/controller.pm.tem +++ b/Templates/controller.pm.tem @@ -35,6 +35,7 @@ use SrvMngr qw(theme_list init_session); use Data::Dumper; use esmith::util; +use esmith::util::network ; use esmith::ConfigDB; use esmith::AccountsDB; use esmith::NetworksDB; diff --git a/Templates/custom.pm.tem b/Templates/custom.pm.tem index e34ccdd..cb26e2b 100644 --- a/Templates/custom.pm.tem +++ b/Templates/custom.pm.tem @@ -6,6 +6,7 @@ # and provison of the control data for table(s) # use esmith::util; +use esmith::util::network; use esmith::ConfigDB; use esmith::HostsDB; use esmith::AccountsDB; @@ -61,12 +62,10 @@ our $ddb = esmith::DomainsDB->open() || die("Couldn't open Domains db"); sub get_${tablecontrol[0]} { # Return an array of hashes of the contents for each row and column for ${tablecontrol[0]} - # default is a single row of strings "col1header-1, col2header-1, col3Header-1 etc" - # Cols needed are: + # Cols/fields in hash needed are: # ${col}, # my $c = shift; - my $control_data = $c->stash('${tablecontrol[0]}'); my @ret = {};