summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorjrayhawk+piny.be@omgwallhack.org <jrayhawk@piny.svcs.cs.pdx.edu>2010-07-19 00:26:48 -0700
committerjrayhawk+piny.be@omgwallhack.org <jrayhawk@piny.svcs.cs.pdx.edu>2010-07-19 00:26:48 -0700
commitb94c9ba4b418dc6f61f9c21a7a344b17861c4954 (patch)
treee7f406097c993a67eaeb4c73c7a6678d15b29c8b /usr
parent3083d36ed28fec70d4151a01830c3ae1dcdff193 (diff)
downloadpiny-code-b94c9ba4b418dc6f61f9c21a7a344b17861c4954.tar.gz
piny-code-b94c9ba4b418dc6f61f9c21a7a344b17861c4954.zip
Fix to only use the first document in the config file.
Diffstat (limited to 'usr')
-rw-r--r--usr/src/libpiny/lib/Piny/Config.pm2
1 files changed, 1 insertions, 1 deletions
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 { };
};