From 3654ac94fefaec9fc84d15fb6af2a29784717f74 Mon Sep 17 00:00:00 2001 From: Vijay Halaharvi Date: Fri, 8 Mar 2013 20:23:56 -0600 Subject: [PATCH] config is not available in __opts__ Using this example with salt-run throws a KeyError for 'config', use 'conf_file' instead. --- doc/ref/runners/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/ref/runners/index.rst b/doc/ref/runners/index.rst index 6d0e41e49aac..41a8966bb2a0 100644 --- a/doc/ref/runners/index.rst +++ b/doc/ref/runners/index.rst @@ -46,7 +46,7 @@ responding to Salt calls would look like this: ''' Print a list of all of the minions that are up ''' - client = salt.client.LocalClient(__opts__['config']) + client = salt.client.LocalClient(__opts__['conf_file']) minions = client.cmd('*', 'test.ping', timeout=1) for minion in sorted(minions): print minion