code: def _snapper_post(opts, jid, pre_num):
      '''
      Create the post states snapshot
      '''
      try:
          if not opts['test'] and __opts__.get('snapper_states') and pre_num:
              # Run the snapper pre snapshot
              __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: %s', jidf _snapper_post(opts, jid, pre_num):
      '''
      Create the post states snapshot
      '''
      try:
          if not opts['test'] and __opts__.get('snapper_states') and pre_num:
              # Run the snapper pre snapshot
              __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: %s', jid)
docs: Create the post states snapshot