def _snapper_post(opts, jid, pre_num):
 try:
  if ((not opts['test']) and __opts__.get('snapper_states') and pre_num):
   __salt__['snapper.create_snapshot'](config=__opts__.get('snapper_states_config', 'root'), snapshot_type='post', pre_number=pre_num, description='Salt State run for jid {0}'.format(jid), __pub_jid=jid)
 except Exception:
  log.error('Failed to create snapper pre snapshot for jid: {0}'.format(jid))

def _snapper_post ( opts , jid , pre_num ) : try : if ( ( not opts [ 'test' ] ) and __opts__ . get ( 'snapper_states' ) and pre_num ) : __salt__ [ 'snapper.create_snapshot' ] ( config = __opts__ . get ( 'snapper_states_config' , 'root' ) , snapshot_type = 'post' , pre_number = pre_num , description = 'Salt State run for jid {0}' . format ( jid ) , __pub_jid = jid ) except Exception : log . error ( 'Failed to create snapper pre snapshot for jid: {0}' . format ( jid ) )
create the post states snapshot .