From 45b18fcaaf9daa76dbf99df3e6f324233b2457c8 Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Thu, 18 Apr 2013 14:18:32 -0400 Subject: bcfg2-info: fixed "bcfg2-info clients" when using clients database --- src/sbin/bcfg2-info | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/sbin/bcfg2-info') 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) -- cgit v1.2.3-1-g7c22