Created
October 19, 2012 12:07
-
-
Save lamanotrama/3917925 to your computer and use it in GitHub Desktop.
tagとるやつ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sub _build_volume_name { | |
my $self = shift; | |
my $name_tag = $self->ec2->describe_tags( | |
"Filter.Name" => [ "resource-id", "key" ], | |
"Filter.Value" => [ $self->ebs->volume_id, "Name" ] | |
) or croak "Target EBS requires 'Name' tag: ". $self->ebs->volume_id; | |
return $name_tag->[0]->value; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment