def execute_module(module_name, module_args, *_): if module_name != "etcdkeysize": return { "changed": False, } client = fake_etcd_client(tree) s, limit_exceeded = check_etcd_key_size(client, tree["key"], module_args["size_limit_bytes"]) return {"size_limit_exceeded": limit_exceeded}
def execute_module(module_name, args, tmp=None, task_vars=None): if module_name != "etcdkeysize": return { "changed": False, } client = fake_etcd_client(tree) s, limit_exceeded = check_etcd_key_size(client, tree["key"], args["size_limit_bytes"]) return {"size_limit_exceeded": limit_exceeded}
def execute_module(module_name, module_args, *_): if module_name != "etcdkeysize": return { "changed": False, } client = fake_etcd_client(tree) size, limit_exceeded = check_etcd_key_size(client, root_path, module_args["size_limit_bytes"]) assert size == expected_size return { "size_limit_exceeded": limit_exceeded, }
def execute_module(module_name, args, tmp=None, task_vars=None): if module_name != "etcdkeysize": return { "changed": False, } client = fake_etcd_client(tree) size, limit_exceeded = check_etcd_key_size(client, root_path, args["size_limit_bytes"]) assert size == expected_size return { "size_limit_exceeded": limit_exceeded, }