[zaptel-commits] tzafrir: branch 1.2 r3766 - /branches/1.2/xpp/utils/zconf/Zaptel/Config/

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Wed Jan 30 16:42:56 CST 2008


Author: tzafrir
Date: Wed Jan 30 16:42:55 2008
New Revision: 3766

URL: http://svn.digium.com/view/zaptel?view=rev&rev=3766
Log:
Don't fail zapconf if no config file was found.

Modified:
    branches/1.2/xpp/utils/zconf/Zaptel/Config/Defaults.pm

Modified: branches/1.2/xpp/utils/zconf/Zaptel/Config/Defaults.pm
URL: http://svn.digium.com/view/zaptel/branches/1.2/xpp/utils/zconf/Zaptel/Config/Defaults.pm?view=diff&rev=3766&r1=3765&r2=3766
==============================================================================
--- branches/1.2/xpp/utils/zconf/Zaptel/Config/Defaults.pm (original)
+++ branches/1.2/xpp/utils/zconf/Zaptel/Config/Defaults.pm Wed Jan 30 16:42:55 2008
@@ -46,7 +46,9 @@
 			}
 		}
 	}
-	die "No default_file" unless $default_file;
+	if (! $default_file) {
+		return ("", ());
+	}
 	my %vars = Zaptel::Config::Defaults::do_source($default_file, @vars);
 	return ($default_file, %vars);
 }




More information about the zaptel-commits mailing list