MXS-1300: Remove redundant commands
The disabling of maxlog and syslog should be done by altering the logging parameters.
This commit is contained in:
@ -36,16 +36,6 @@ exports.builder = function(yargs) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.command('maxlog', 'Disable MaxScale logging', {}, function(argv) {
|
|
||||||
maxctrl(argv, function(host) {
|
|
||||||
return updateValue(host, 'maxscale/logs', 'data.attributes.parameters.maxlog', false)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
.command('syslog', 'Disable syslog logging', {}, function(argv) {
|
|
||||||
maxctrl(argv, function(host) {
|
|
||||||
return updateValue(host, 'maxscale/logs', 'data.attributes.parameters.syslog', false)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
.command('account <name>', 'Disable a Linux user account from administrative use', {}, function(argv) {
|
.command('account <name>', 'Disable a Linux user account from administrative use', {}, function(argv) {
|
||||||
maxctrl(argv, function(host) {
|
maxctrl(argv, function(host) {
|
||||||
return doRequest(host, 'users/unix/' + argv.name, null, { method: 'DELETE'})
|
return doRequest(host, 'users/unix/' + argv.name, null, { method: 'DELETE'})
|
||||||
|
@ -36,16 +36,6 @@ exports.builder = function(yargs) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.command('maxlog', 'Enable MaxScale logging', {}, function(argv) {
|
|
||||||
maxctrl(argv, function(host) {
|
|
||||||
return updateValue(host, 'maxscale/logs', 'data.attributes.parameters.maxlog', true)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
.command('syslog', 'Enable syslog logging', {}, function(argv) {
|
|
||||||
maxctrl(argv, function(host) {
|
|
||||||
return updateValue(host, 'maxscale/logs', 'data.attributes.parameters.syslog', true)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
.command('account <name>', 'Activate a Linux user account for administrative use', {}, function(argv) {
|
.command('account <name>', 'Activate a Linux user account for administrative use', {}, function(argv) {
|
||||||
var req_body = {
|
var req_body = {
|
||||||
data: {
|
data: {
|
||||||
|
Reference in New Issue
Block a user