Fix Agent.username default.

This commit is contained in:
Daniel Nichter
2013-04-10 16:57:43 -06:00
parent 7bfc694be4
commit 230d8e0394

View File

@@ -32,7 +32,7 @@ has 'username' => (
is => 'rw', is => 'rw',
isa => 'Str', isa => 'Str',
required => 1, required => 1,
default => $ENV{USER} || $ENV{LOGNAME}, default => sub { return $ENV{USER} || $ENV{LOGNAME} },
); );
has 'hostname' => ( has 'hostname' => (