MXS-1656: Rename misleading functions
The function getResource had two different implementations that did very different things. The newer version, that returns the raw JSON object that represents a resource, was renamed to getJson.
This commit is contained in:
@ -33,7 +33,7 @@ exports.builder = function(yargs) {
|
||||
]
|
||||
|
||||
// First, get the list of all servers
|
||||
return getResource(host, 'servers')
|
||||
return getJson(host, 'servers')
|
||||
.then((res) => {
|
||||
|
||||
promises = []
|
||||
@ -49,7 +49,7 @@ exports.builder = function(yargs) {
|
||||
|
||||
// This servers is monitored by a monitor, get the monitor resource
|
||||
promises.push(
|
||||
getResource(host, 'monitors/' + owner)
|
||||
getJson(host, 'monitors/' + owner)
|
||||
.then((res) => {
|
||||
|
||||
// Check if the monitor defines a server_info object
|
||||
|
||||
Reference in New Issue
Block a user