ispman/bin ispman-agent,1.68,1.69

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-serv4421/bin

Modified Files:
	ispman-agent 
Log Message:
fixes [ 1051065 ] insignificant error-message from ispman-agent
(merged from rel_1_2-bugfixes, 1.64.2.1)

Index: ispman-agent
===================================================================
RCS file: /cvsroot/ispman/ispman/bin/ispman-agent,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -d -r1.68 -r1.69
--- ispman-agent	30 Dec 2004 17:16:28 -0000	1.68
+++ ispman-agent	9 Oct 2005 09:27:54 -0000	1.69
@@ -163,8 +163,10 @@
 $ldapBaseDN          = $ispman->getConf('ldapBaseDN');
 
 # 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.