mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 13:40:07 +00:00
Begin to fill in pt-agent. Use new, experimental Percona::Toolkit. Remove Versions resource; add as optional attrib to Agent resource.
This commit is contained in:
@@ -15,12 +15,11 @@ has 'hostname' => (
|
||||
is => 'ro',
|
||||
isa => 'Str',
|
||||
required => 1,
|
||||
default => sub { return `hostname 2>/dev/null` },
|
||||
);
|
||||
|
||||
has 'versions' => (
|
||||
is => 'ro',
|
||||
isa => 'Maybe[Percona::WebAPI::Resource::Versions]',
|
||||
isa => 'Maybe[HashRef]',
|
||||
required => 0,
|
||||
default => undef,
|
||||
);
|
||||
|
@@ -1,14 +0,0 @@
|
||||
package Percona::WebAPI::Resource::Versions;
|
||||
|
||||
use Mo;
|
||||
|
||||
with 'Percona::WebAPI::Representation::JSON';
|
||||
with 'Percona::WebAPI::Representation::HashRef';
|
||||
|
||||
has 'versions' => (
|
||||
is => 'ro',
|
||||
isa => 'HashRef',
|
||||
required => 1,
|
||||
);
|
||||
|
||||
1;
|
Reference in New Issue
Block a user