lib/one2influx/config.rb
# XML with virtual machine monitoring doesn't contain tags CLUSTER_ID,
# CLUSTER_NAME, HOST_ID and HOST_NAME so it needs to be loaded from the host
# running that VM.
# Therefore these tags are handled differently and needs to be separated from
# the rest into @@storage[:vm][:inh_tags]
XML with virtual machine monitoring doesn't contain tags CLUSTER_ID,
CLUSTER_NAME, HOST_ID and HOST_NAME so it needs to be loaded from the host
running that VM.
Therefore these tags are handled differently and needs to be separated from
the rest into @@storage[:vm][:inh_tags]
XML with virtual machine monitoring doesn ' t contain tags CLUSTER_ID CLUSTER_NAME HOST_ID and HOST_NAME so it needs to be loaded from the host running that VM . Therefore these tags are handled differently and needs to be separated from the rest into @@storage [ : vm ] [ : inh_tags ]
def prepare_vm_config
    inh_tags = %i(CLUSTER_ID CLUSTER_NAME HOST_ID HOST_NAME)
    @@storage[:vm][:inh_tags] = @@storage[:vm][:tags].clone
    @@storage[:vm][:inh_tags].keep_if do |key, value|
      inh_tags.include? key
    end
    @@storage[:vm][:inh_tags].each do |key, value|
      @@storage[:vm][:tags].delete(key)
    end
  end
def prepare_vm_config inh_tags = %i( CLUSTER_ID CLUSTER_NAME HOST_ID HOST_NAME ) @@storage [ :vm ] [ :inh_tags ] = @@storage [ :vm ] [ :tags ] . clone @@storage [ :vm ] [ :inh_tags ] . keep_if do | key , value | inh_tags . include? key end @@storage [ :vm ] [ :inh_tags ] . each do | key , value | @@storage [ :vm ] [ :tags ] . delete ( key ) end end
XML with virtual machine monitoring doesn't contain tags CLUSTER_ID,
CLUSTER_NAME, HOST_ID and HOST_NAME so it needs to be loaded from the host
running that VM.
XML with virtual machine monitoring doesn ' t contain tags CLUSTER_ID CLUSTER_NAME HOST_ID and HOST_NAME so it needs to be loaded from the host running that VM .
# Get inherited tags into special hash for VMs only # Remove them from original hash