From: Marco Fontani Date: Sat, 20 Nov 2010 19:02:15 +0000 (+0000) Subject: I'm lazy, not the attribute! X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FOyster.git;a=commitdiff_plain;h=1f1bb35ee6999b168b62a42a9cd89998b19ce7d7 I'm lazy, not the attribute! --- diff --git a/lib/Oyster/Provision/Rackspace.pm b/lib/Oyster/Provision/Rackspace.pm index 9abae87..e9c8398 100644 --- a/lib/Oyster/Provision/Rackspace.pm +++ b/lib/Oyster/Provision/Rackspace.pm @@ -16,7 +16,7 @@ has 'api_key' => ( is => 'ro', isa => 'Str', required => 1, default => sub { confess "Need api_key or RACKSPACE_KEY in environment"; }); -has '_rs' => ( is => 'rw', isa => 'Net::RackSpace::CloudServers', lazy_build => 1, default => sub { +has '_rs' => ( is => 'rw', isa => 'Net::RackSpace::CloudServers', default => sub { my $self = shift; my $rs = Net::RackSpace::CloudServers->new( user => $self->api_username,