def server_identical(client, module, server_proxy): log('Checking if configured server is identical') if server.count_filtered(client, 'name:%s' % module.params['name']) == 0: return False server_list = server.get_filtered(client, 'name:%s' % module.params['name']) if server_proxy.has_equal_attributes(server_list[0]): return True else: return False
def server_identical(client, module, server_proxy): log('Checking if configured server is identical') if server.count_filtered(client, 'name:%s' % module.params['name']) == 0: return False server_list = server.get_filtered(client, 'name:%s' % module.params['name']) if server_proxy.has_equal_attributes(server_list[0]): return True else: return False
def server_identical(): if server.count_filtered(client, 'name:%s' % module.params['name']) == 0: return False server_list = server.get_filtered(client, 'name:%s' % module.params['name']) if server_proxy.has_equal_attributes(server_list[0]): return True else: return False
def diff_list(client, module, server_proxy): ret_val = server_proxy.diff_object( server.get_filtered(client, 'name:%s' % module.params['name'])[0]), return ret_val[0]
def diff_list(client, module, server_proxy): ret_val = server_proxy.diff_object(server.get_filtered(client, 'name:%s' % module.params['name'])[0]), return ret_val[0]
def diff_list(): return server_proxy.diff_object( server.get_filtered(client, 'name:%s' % module.params['name'])[0]),