Skip to content

Commit

Permalink
silence an uninitialized warning in test
Browse files Browse the repository at this point in the history
  • Loading branch information
stevecaldwell77 committed Aug 15, 2012
1 parent 654ac76 commit ee70fe7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion t/02_live.t
Expand Up @@ -103,7 +103,9 @@ my $running_instances = $ec2->describe_instances();
my $seen_test_instance = 0;
foreach my $instance (@{$running_instances}) {
my $instance_set = $instance->instances_set->[0];
if ($instance_set->key_name eq "test_keys" and $instance_set->image_id eq "ami-26b6534f") {
my $key_name = $instance_set->key_name || '';
my $image_id = $instance_set->image_id || '';
if ($key_name eq 'test_keys' and $image_id eq 'ami-26b6534f') {
$seen_test_instance = 1;
}
}
Expand Down

0 comments on commit ee70fe7

Please sign in to comment.