Skip to content
Snippets Groups Projects
Commit bd177068 authored by Tomáš Plesník's avatar Tomáš Plesník
Browse files

nacteni konfiguracniho souboru klienta presunuto na zacatek modulu

parent d4881c19
No related branches found
No related tags found
No related merge requests found
...@@ -18,6 +18,12 @@ use Carp; ...@@ -18,6 +18,12 @@ use Carp;
our $VERSION = "2.2"; our $VERSION = "2.2";
# load client configuration
my $lib = File::Basename::dirname(__FILE__);
my $etc = "$lib/../etc";
my $conf_file = "$etc/warden-client.conf";
loadConf($conf_file);
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
# errMsg - prints error msg and returns undef or prints warning and returns 1 # errMsg - prints error msg and returns undef or prints warning and returns 1
...@@ -134,12 +140,6 @@ sub c2s ...@@ -134,12 +140,6 @@ sub c2s
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
sub getClientInfo sub getClientInfo
{ {
# load client configuration
my $lib = File::Basename::dirname(__FILE__);
my $etc = "$lib/../etc";
my $conf_file = "$etc/warden-client.conf";
loadConf($conf_file);
# obtain information about clients on Warden server # obtain information about clients on Warden server
my $response = c2s($WardenClientCommon::URI, $WardenClientCommon::SSL_KEY, $WardenClientCommon::SSL_CERT, $WardenClientCommon::SSL_CA_CERT, "getClientInfo"); my $response = c2s($WardenClientCommon::URI, $WardenClientCommon::SSL_KEY, $WardenClientCommon::SSL_CERT, $WardenClientCommon::SSL_CA_CERT, "getClientInfo");
defined $response or return; # receive data or return undef defined $response or return; # receive data or return undef
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment