code: def write_rtag(opts):
      '''
      Write the rtag file
      '''
      rtag_file = rtag(opts)
      if not os.path.exists(rtag_file):
          try:
              with salt.utils.files.fopen(rtag_file, 'w+'):
                  pass
          except OSError as exc:
              log.warning('Encountered error writing rtag: %s', exc.__str__()f write_rtag(opts):
      '''
      Write the rtag file
      '''
      rtag_file = rtag(opts)
      if not os.path.exists(rtag_file):
          try:
              with salt.utils.files.fopen(rtag_file, 'w+'):
                  pass
          except OSError as exc:
              log.warning('Encountered error writing rtag: %s', exc.__str__())
docs: Write the rtag file