diff options
author | Sol Jerome <solj@ices.utexas.edu> | 2008-09-08 20:50:06 +0000 |
---|---|---|
committer | Sol Jerome <solj@ices.utexas.edu> | 2008-09-08 20:50:06 +0000 |
commit | 830df772acfb458eb78082e2549930cbf0f307e5 (patch) | |
tree | 1b171d4b612bfcff4f330d77b583869cb296e741 /src/lib | |
parent | 215e5621e0696b7244bca5d0bbe6f12465e48db9 (diff) | |
download | bcfg2-830df772acfb458eb78082e2549930cbf0f307e5.tar.gz bcfg2-830df772acfb458eb78082e2549930cbf0f307e5.tar.bz2 bcfg2-830df772acfb458eb78082e2549930cbf0f307e5.zip |
Use the GetClient methods from Metadata.py
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4906 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Server/Admin/Query.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/Server/Admin/Query.py b/src/lib/Server/Admin/Query.py index 67484083d..296749cf7 100644 --- a/src/lib/Server/Admin/Query.py +++ b/src/lib/Server/Admin/Query.py @@ -39,11 +39,9 @@ class Query(Bcfg2.Server.Admin.Mode): print "Unknown argument %s" % arg continue if k == 'p': - nc = [c for c, p in self.meta.clients.iteritems() if p == v] + nc = self.meta.GetClientByProfile(v) elif k == 'g': - nc = [c for c in self.meta.clients if v in - self.meta.groups[self.meta.clients[c]][1] or - v in self.meta.cgroups.get(c, [])] + nc = self.meta.GetClientByGroup(v) clients = [c for c in clients if c in nc] if '-n' in args: for client in clients: |