Permalink
Browse files

call the plural version

  • Loading branch information...
1 parent f8878ec commit dc2c07fb6ef98ef8b4b31a7a243f7a7bfd03077d @crucially crucially committed Feb 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/fastly
View
2 bin/fastly
@@ -665,7 +665,7 @@ sub list_objects {
my $version_num = $args[2];
my $type = $args[3];
my ($service) = $fastly->search_services(name => $service_name, version => $version_num);
- my $meth = "list_$type";
+ my $meth = "list_$type" . "s";
my @objects = $fastly->$meth( service_id => $service->id );
return [sort map { $_->name } @objects];
}

0 comments on commit dc2c07f

Please sign in to comment.