parameters: (self, key, value)
docstring: Set the key/value pair as an LVM tag. Does not "refresh" the values of
          the current object for its tags. Meant to be a "fire and forget" type
          of modification.
  
          **warning**: Altering tags on a PV has to be done ensuring that the
          device is actually the one intended. ``pv_name`` is *not* a persistent
          value, only ``pv_uuid`` is. Using ``pv_uuid`` is the best way to make
          sure the device getting changed is the one needed.
docstring_summary: Set the key/value pair as an LVM tag. Does not "refresh" the values of
          the current object for its tags. Meant to be a "fire and forget" type
          of modification.
docstring_tokens: Set the key / value pair as an LVM tag . Does not refresh the values of the current object for its tags . Meant to be a fire and forget type of modification .
function: def set_tag(self, key, value):
          """
          Set the key/value pair as an LVM tag. Does not "refresh" the values of
          the current object for its tags. Meant to be a "fire and forget" type
          of modification.
  
          **warning**: Altering tags on a PV has to be done ensuring that the
          device is actually the one intended. ``pv_name`` is *not* a persistent
          value, only ``pv_uuid`` is. Using ``pv_uuid`` is the best way to make
          sure the device getting changed is the one needed.
          """
          # remove it first if it exists
          if self.tags.get(key):
              current_value = self.tags[key]
              tag = "%s=%s" % (key, current_value)
              process.call(['pvchange', '--deltag', tag, self.pv_name], run_on_host=True)
  
          process.call(
              [
                  'pvchange',
                  '--addtag', '%s=%s' % (key, value), self.pv_name
              ],
              run_on_host=True
          )
function_tokens: def set_tag ( self , key , value ) : # remove it first if it exists if self . tags . get ( key ) : current_value = self . tags [ key ] tag = "%s=%s" % ( key , current_value ) process . call ( [ 'pvchange' , '--deltag' , tag , self . pv_name ] , run_on_host = True ) process . call ( [ 'pvchange' , '--addtag' , '%s=%s' % ( key , value ) , self . pv_name ] , run_on_host = True )