def fact(name, puppet=False):
 opt_puppet = ('--puppet' if puppet else '')
 ret = __salt__['cmd.run']('facter {0} {1}'.format(opt_puppet, name), python_shell=False)
 if (not ret):
  return ''
 return ret

def fact ( name , puppet = False ) : opt_puppet = ( '--puppet' if puppet else '' ) ret = __salt__ [ 'cmd.run' ] ( 'facter {0} {1}' . format ( opt_puppet , name ) , python_shell = False ) if ( not ret ) : return '' return ret
run facter for a specific fact cli example: .