def do_state_change(client, module, server_proxy): if module.params['disabled']: log('Disabling server') result = server.disable(client, server_proxy.actual) else: log('Enabling server') result = server.enable(client, server_proxy.actual) return result
def do_state_change(client, module, server_proxy): if module.params['disabled']: log('Disabling server') result = server.disable(client, server_proxy.actual) else: log('Enabling server') result = server.enable(client, server_proxy.actual) return result