[user_data] add comment on why we do not user the localclient provided by salt
authorPaul Tonelli <paul.tonelli@logilab.fr>
Tue, 26 Nov 2013 13:57:06 +0100
changeset 187 e115bc7c3d86
parent 186 2b3c7010e3ae
child 188 9cb7830868c2
[user_data] add comment on why we do not user the localclient provided by salt
others/user_data_parser.py
--- a/others/user_data_parser.py	Thu Dec 05 16:20:04 2013 +0100
+++ b/others/user_data_parser.py	Tue Nov 26 13:57:06 2013 +0100
@@ -16,8 +16,7 @@
     '''
     ugly, but did not find how to do it more cleanly
 
-    from salt.modules import state
-    state.highstate() #does not work and requires __salt__ dict
+    salt.client.LocalClient() does not work in masterless mode
     '''
     if isinstance(pair[1],list) and len(pair[1]) > 0:
         pair=(pair[0],pair[1][0])