]> git.infradead.org Git - users/dhowells/kafs-utils.git/commitdiff
Fix callers of the prcache eviction functions
authorDavid Howells <dhowells@redhat.com>
Wed, 13 Aug 2014 13:27:06 +0000 (14:27 +0100)
committerDavid Howells <dhowells@redhat.com>
Wed, 13 Aug 2014 13:27:06 +0000 (14:27 +0100)
Fix callers of the prcache eviction functions - they should be calling
evict_*() from the prcache object.

Signed-off-by: David Howells <dhowells@redhat.com>
suite/commands/pts/creategroup.py
suite/commands/pts/createuser.py

index cf1e10e47f24a3f35ae566403d15547218909309..d0da8b85db6ffce83344c8d89e81555467fabd91 100644 (file)
@@ -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:
index a0ff0741cbe0a07b7e679fc770b59a61d6158d82..f2dd8e1c9fa466dd9a4c3ed9c84c6998274f8755 100644 (file)
@@ -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: