summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2007-07-02 19:06:30 +0000
committerNarayan Desai <desai@mcs.anl.gov>2007-07-02 19:06:30 +0000
commit2ba501377b8516fb361196a26edc0c922a2b34ba (patch)
tree42165f4bdd2fb0bed9d13fbfda371fb278d22883 /src
parent62214705d3fdc3c3f105a59aa177854a8d51c619 (diff)
downloadbcfg2-2ba501377b8516fb361196a26edc0c922a2b34ba.tar.gz
bcfg2-2ba501377b8516fb361196a26edc0c922a2b34ba.tar.bz2
bcfg2-2ba501377b8516fb361196a26edc0c922a2b34ba.zip
add completion for bcfg2-info:showclient
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3406 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rwxr-xr-xsrc/sbin/bcfg2-info5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sbin/bcfg2-info b/src/sbin/bcfg2-info
index 12f7f381f..0bb315f7c 100755
--- a/src/sbin/bcfg2-info
+++ b/src/sbin/bcfg2-info
@@ -176,6 +176,10 @@ Usage: [quit|exit]"""
data.append((group, prof, cat, ','.join(gdata)))
printTabular(data)
+ def complete_showclient(self, text, line, begidx, endidx):
+ return [entry for entry in self.metadata.clients \
+ if entry.startswith(text)]
+
def do_showclient(self, args):
''' print host metadata'''
data = [('Client', 'Profile', "Groups", "Bundles")]
@@ -243,7 +247,6 @@ if __name__ == '__main__':
else:
cfile = '/etc/bcfg2.conf'
- #bcore = Bcfg2.Server.Core.Core({}, cfile)
loop = infoCore(cfile)
while loop.cont:
try: