From 0a07c6eba75abf43e12123b3a0e2dfc8bb6b9ef2 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Sun, 30 Nov 2014 04:04:23 +0100 Subject: clients: renamce all-clients --- clients | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 clients (limited to 'clients') diff --git a/clients b/clients new file mode 100755 index 0000000..f904c61 --- /dev/null +++ b/clients @@ -0,0 +1,12 @@ +#!/usr/bin/python +import Bcfg2.Options +import Bcfg2.Client.Proxy + +parser = Bcfg2.Options.get_parser( + components=[Bcfg2.Client.Proxy.ComponentProxy]) +parser.parse() + +proxy = Bcfg2.Client.Proxy.ComponentProxy() +clients = getattr(proxy, 'Metadata.list_clients')() +for client in clients: + print client -- cgit v1.2.3-1-g7c22