From: David Howells Date: Wed, 13 Aug 2014 13:27:06 +0000 (+0100) Subject: Fix callers of the prcache eviction functions X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=054e1e1fb748ed131d26933dbf92bbae8e23be75;p=users%2Fdhowells%2Fkafs-utils.git Fix callers of the prcache eviction functions Fix callers of the prcache eviction functions - they should be calling evict_*() from the prcache object. Signed-off-by: David Howells --- diff --git a/suite/commands/pts/creategroup.py b/suite/commands/pts/creategroup.py index cf1e10e..d0da8b8 100644 --- a/suite/commands/pts/creategroup.py +++ b/suite/commands/pts/creategroup.py @@ -79,8 +79,8 @@ def main(params): ret = cell.call_pt_server(params, kafs.PR_NewEntry, name, kafs.PRGRP, oid) new_id = ret.id output("Group ", name, " has id ", new_id, "\n") - evict_name(name) - evict_id(new_id) + prcache.evict_name(name) + prcache.evict_id(new_id) except kafs.AbortPREXIST: error("Entry for name already exists ; unable to create group ", name, "\n") if "force" not in params: diff --git a/suite/commands/pts/createuser.py b/suite/commands/pts/createuser.py index a0ff074..f2dd8e1 100644 --- a/suite/commands/pts/createuser.py +++ b/suite/commands/pts/createuser.py @@ -73,8 +73,8 @@ def main(params): ret = cell.call_pt_server(params, kafs.PR_INewEntry, name, 0, 0) new_id = ret.id output("User ", name, " has id ", new_id, "\n") - evict_name(name) - evict_id(new_id) + prcache.evict_name(name) + prcache.evict_id(new_id) except kafs.AbortPREXIST: error("Entry for name already exists ; unable to create user ", name, "\n") if "force" not in params: