From: Ian Norton Date: Sat, 20 Nov 2010 22:05:08 +0000 (+0000) Subject: Fixing bugs X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=db3bbe33150deec6ffc5dea0bc68349f8a79f929;p=p5sagit%2FOyster.git Fixing bugs --- diff --git a/lib/Oyster/Provision/AmazonEC2.pm b/lib/Oyster/Provision/AmazonEC2.pm index 8fdd7af..4ccd509 100644 --- a/lib/Oyster/Provision/AmazonEC2.pm +++ b/lib/Oyster/Provision/AmazonEC2.pm @@ -1,4 +1,5 @@ package Oyster::Provision::AmazonEC2; +use Carp; use Moose::Role; use Net::Amazon::EC2; @@ -41,7 +42,7 @@ sub create { $self->config(); # Start 1 new instance from AMI: ami-XXXXXXXX - my $instance = $ec2->run_instances( + my $instance = $self->ec2->run_instances( ImageId => $self->image() or "ami-1a837773", KeyName => $self->ec2_oyster_key, MinCount => 1, @@ -72,7 +73,7 @@ Oyster::Provision::AmazonEC2 -- Provision your Oyster on Amazon EC2 =head1 SYNOPSIS -Use the Rackspace backend on your Oyster configuration file +Use the Amazon backend on your Oyster configuration file =head1 REQUIRED PARAMETERS