diff --git a/bin/pt-agent b/bin/pt-agent index b18ea394..13e28297 100755 --- a/bin/pt-agent +++ b/bin/pt-agent @@ -1263,13 +1263,13 @@ has 'hostname' => ( ); has 'alias' => ( - is => 'ro', + is => 'rw', isa => 'Str', required => 0, ); has 'versions' => ( - is => 'ro', + is => 'rw', isa => 'Maybe[HashRef]', required => 0, ); diff --git a/lib/Percona/WebAPI/Resource/Agent.pm b/lib/Percona/WebAPI/Resource/Agent.pm index f73816fd..8c6b8c8c 100644 --- a/lib/Percona/WebAPI/Resource/Agent.pm +++ b/lib/Percona/WebAPI/Resource/Agent.pm @@ -46,13 +46,13 @@ has 'hostname' => ( ); has 'alias' => ( - is => 'ro', + is => 'rw', isa => 'Str', required => 0, ); has 'versions' => ( - is => 'ro', + is => 'rw', isa => 'Maybe[HashRef]', required => 0, );