ispman/bin ispman-agent,1.64,1.64.2.1

Joerg Delker <[email protected]>
Newsgroups gmane.comp.isp.ispman.cvs
Message-ID <[email protected]>
Update of /cvsroot/ispman/ispman/bin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3212/bin

Modified Files:
      Tag: rel_1_2-bugfixes
	ispman-agent 
Log Message:
fixes bug [ 1051065 ] insignificant error-message from ispman-agent

Index: ispman-agent
===================================================================
RCS file: /cvsroot/ispman/ispman/bin/ispman-agent,v
retrieving revision 1.64
retrieving revision 1.64.2.1
diff -u -d -r1.64 -r1.64.2.1
--- ispman-agent	5 Jun 2004 12:45:18 -0000	1.64
+++ ispman-agent	9 Oct 2005 09:22:46 -0000	1.64.2.1
@@ -177,8 +177,10 @@
 $namedSecDir =~ s!//!/!g;
 
 # get all host aliases
-@hostnames =
-  $ispman->as_array( $ispman->getHostInfo($hostname)->{'ispmanHostAlias'} );
+my $hostInfo = $ispman->getHostInfo($hostname);
+if ( defined($hostInfo) ) {
+    @hostnames = $ispman->as_array( $hostInfo->{'ispmanHostAlias'} );
+}
 push @hostnames, $hostname;
 
 # Stanislav Sinyagin <ssinyagin-/[email protected]>



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.