def sync_grains(saltenv='base'):
 return salt.utils.extmods.sync(__opts__, 'grains', saltenv=saltenv)[0]

def sync_grains ( saltenv = 'base' ) : return salt . utils . extmods . sync ( __opts__ , 'grains' , saltenv = saltenv ) [ 0 ]
sync grains modules from salt://_grains to the master saltenv : base the fileserver environment from which to sync .