MXS-1300: Remove redundant commands

The disabling of maxlog and syslog should be done by altering the logging
parameters.
This commit is contained in:
Markus Mäkelä
2017-07-21 17:38:51 +03:00
parent 53789f3b4b
commit f28a919982
2 changed files with 0 additions and 20 deletions

View File

@ -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'})

View File

@ -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: {