Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2014
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. ext_pillar:
  2. - mysql:
  3. mysql_query: 'SELECT machine_variables.name as pillar, machine_variables.val as value FROM machine_variables LEFT JOIN machines on machine_variables.machine_id = machines.id WHERE machines.machinename = ''%s'''
  4.  
  5. Note...I found using %S standard before modifying the python it wouldn't concat the string...you should now see the line:
  6.  
  7. thisquery = mysql_query % (minion_id,)
  8.  
  9.  
  10. Sorry I'm not a python guru, but at least it works :)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement