refresh_module

Refresh module first stops the module (if running), next if will check for an update and performs the update if required. When finished, it will start the module again.

This function generates a change.

Function

refresh_module(name)

Arguments

Argument Type Description
name str (required) Name of the module to refresh.

Return value

Returns nil. You might want to use module_info(..) to check if the module is successfully running. If not, the node logging might give you additional information about the cause of the error.

Example

Refresh module demo:

refresh_module('demo');

Return value in JSON format

null