From: Marco Fontani Date: Sat, 20 Nov 2010 19:04:26 +0000 (+0000) Subject: Correct env var X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=758d921f04c9c33e9673979a92a652837e05791e;p=p5sagit%2FOyster.git Correct env var --- diff --git a/lib/Oyster/Provision/Rackspace.pm b/lib/Oyster/Provision/Rackspace.pm index e9c8398..31e5973 100644 --- a/lib/Oyster/Provision/Rackspace.pm +++ b/lib/Oyster/Provision/Rackspace.pm @@ -8,11 +8,11 @@ use MIME::Base64; requires 'config'; has 'api_username' => ( is => 'ro', isa => 'Str', required => 1, default => sub { - return $ENV{RACKSPACE_USER} if exists $ENV{RACKSPACE_USER}; - confess "Need api_username or RACKSPACE_USER in environment"; + return $ENV{CLOUDSERVERS_USER} if exists $ENV{CLOUDSERVERS_USER}; + confess "Need api_username or CLOUDSERVERS_USER in environment"; }); has 'api_key' => ( is => 'ro', isa => 'Str', required => 1, default => sub { - return $ENV{RACKSPACE_KEY} if exists $ENV{RACKSPACE_KEY}; + return $ENV{CLOUDSERVERS_KEY} if exists $ENV{CLOUDSERVERS_KEY}; confess "Need api_key or RACKSPACE_KEY in environment"; });