From b94c9ba4b418dc6f61f9c21a7a344b17861c4954 Mon Sep 17 00:00:00 2001 From: "jrayhawk+piny.be@omgwallhack.org" Date: Mon, 19 Jul 2010 00:26:48 -0700 Subject: Fix to only use the first document in the config file. --- usr/src/libpiny/lib/Piny/Config.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr') diff --git a/usr/src/libpiny/lib/Piny/Config.pm b/usr/src/libpiny/lib/Piny/Config.pm index bad63a1..ddc546a 100644 --- a/usr/src/libpiny/lib/Piny/Config.pm +++ b/usr/src/libpiny/lib/Piny/Config.pm @@ -58,7 +58,7 @@ sub _build__conf { if ( -e "/etc/piny.conf" ) { my $yaml = YAML::Tiny->new; - return $yaml->read( "/etc/piny.conf" ); + return $yaml->read( "/etc/piny.conf" )->[0]; } else { return { }; }; -- cgit v1.2.3