Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
mfontani committed May 18, 2011
1 parent 4d53783 commit edd2f53
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/Net/RackSpace/CloudServers.pm
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package Net::RackSpace::CloudServers;
use warnings;
use strict;
use Any::Moose (
'::Util::TypeConstraints' => ['subtype'],
);
use Any::Moose;
use Any::Moose ( '::Util::TypeConstraints' );
use Net::RackSpace::CloudServers::Flavor;
use Net::RackSpace::CloudServers::Server;
use Net::RackSpace::CloudServers::Image;
Expand All @@ -22,7 +21,7 @@ has 'timeout' => ( is => 'ro', isa => 'Num', required => 0, default =
has 'ua' => ( is => 'rw', isa => 'LWP::UserAgent', required => 0 );

# This module currently supports only US and UK
subtype ValidLocation => as Str => where { $_ eq 'US' or $_ eq 'UK' };
subtype ValidLocation => as 'Str' => where { $_ eq 'US' or $_ eq 'UK' };

# The two locations have different API endpoints
our %api_endpoint_by_location = (
Expand Down

0 comments on commit edd2f53

Please sign in to comment.