Commit b613c189 authored by Dietmar Maurer's avatar Dietmar Maurer

pass required node name parameter

parent b5e97adc
...@@ -107,16 +107,16 @@ __PACKAGE__->register_method ({ ...@@ -107,16 +107,16 @@ __PACKAGE__->register_method ({
}}); }});
my $cmddef = { my $cmddef = {
init => [ 'PVE::API2::Ceph', 'init', [] ], init => [ 'PVE::API2::Ceph', 'init', [], { node => $nodename } ],
createosd => [ 'PVE::API2::Ceph', 'createosd', ['dev'] ], createosd => [ 'PVE::API2::Ceph', 'createosd', ['dev'], { node => $nodename } ],
destroyosd => [ 'PVE::API2::Ceph', 'destroyosd', ['osdid'] ], destroyosd => [ 'PVE::API2::Ceph', 'destroyosd', ['osdid'], { node => $nodename } ],
createmon => [ 'PVE::API2::Ceph', 'createmon', [] ], createmon => [ 'PVE::API2::Ceph', 'createmon', [], { node => $nodename } ],
destroymon => [ 'PVE::API2::Ceph', 'destroymon', ['monid'] ], destroymon => [ 'PVE::API2::Ceph', 'destroymon', ['monid'], { node => $nodename } ],
start => [ 'PVE::API2::Ceph', 'start', [] ], start => [ 'PVE::API2::Ceph', 'start', [], { node => $nodename } ],
stop => [ 'PVE::API2::Ceph', 'stop', [] ], stop => [ 'PVE::API2::Ceph', 'stop', [], { node => $nodename } ],
install => [ __PACKAGE__, 'install', [] ], install => [ __PACKAGE__, 'install', [] ],
purge => [ __PACKAGE__, 'purge', [] ], purge => [ __PACKAGE__, 'purge', [] ],
status => [ 'PVE::API2::Ceph', 'status', [], undef, sub { status => [ 'PVE::API2::Ceph', 'status', [], { node => $nodename }, sub {
my $res = shift; my $res = shift;
my $json = JSON->new->allow_nonref; my $json = JSON->new->allow_nonref;
print $json->pretty->encode($res) . "\n"; print $json->pretty->encode($res) . "\n";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment