From a778f938d1aafaeabe21dccb81825fda2c1eae83 Mon Sep 17 00:00:00 2001 From: Mickey Nasriachi Date: Sat, 26 Oct 2024 08:20:02 +0200 Subject: [PATCH] Fix attribute type constraint --- lib/MetaCPAN/Script/Snapshot.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/MetaCPAN/Script/Snapshot.pm b/lib/MetaCPAN/Script/Snapshot.pm index 42ca98b96..36fb64a25 100644 --- a/lib/MetaCPAN/Script/Snapshot.pm +++ b/lib/MetaCPAN/Script/Snapshot.pm @@ -81,7 +81,7 @@ has snap_name => ( has host => ( is => 'ro', - isa => Str, + isa => 'URI::http', default => sub { my $self = shift; return $self->es->transport->cxn_pool->cxns->[0]->uri;