From 65a0fe82f4a33ab5b6720d603681213935b5d3aa Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Tue, 2 Dec 2014 00:54:29 +0100 Subject: clients: simplified syntax --- clients | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'clients') diff --git a/clients b/clients index f904c61..0459076 100755 --- a/clients +++ b/clients @@ -7,6 +7,5 @@ parser = Bcfg2.Options.get_parser( parser.parse() proxy = Bcfg2.Client.Proxy.ComponentProxy() -clients = getattr(proxy, 'Metadata.list_clients')() -for client in clients: +for client in proxy.Metadata.list_clients(): print client -- cgit v1.2.3-1-g7c22