summaryrefslogtreecommitdiffstats
path: root/src/sbin/bcfg2-info
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2013-04-18 14:18:32 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2013-04-18 14:18:32 -0400
commit45b18fcaaf9daa76dbf99df3e6f324233b2457c8 (patch)
tree8dd4f50a06327a3bdff8586aa228b5da8f9f4fa3 /src/sbin/bcfg2-info
parent717e0c60d2979de6d6e0ff04ea40e8e9c1654cbf (diff)
downloadbcfg2-45b18fcaaf9daa76dbf99df3e6f324233b2457c8.tar.gz
bcfg2-45b18fcaaf9daa76dbf99df3e6f324233b2457c8.tar.bz2
bcfg2-45b18fcaaf9daa76dbf99df3e6f324233b2457c8.zip
bcfg2-info: fixed "bcfg2-info clients" when using clients database
Diffstat (limited to 'src/sbin/bcfg2-info')
-rwxr-xr-xsrc/sbin/bcfg2-info4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/sbin/bcfg2-info b/src/sbin/bcfg2-info
index b1e188d81..ac4c3af13 100755
--- a/src/sbin/bcfg2-info
+++ b/src/sbin/bcfg2-info
@@ -457,9 +457,7 @@ Bcfg2 client itself.""")
def do_clients(self, _):
""" clients - Print out client/profile info """
data = [('Client', 'Profile')]
- clist = self.metadata.clients
- clist.sort()
- for client in clist:
+ for client in sorted(self.metadata.list_clients()):
imd = self.metadata.get_initial_metadata(client)
data.append((client, imd.profile))
print_tabular(data)