Guest User

Untitled

a guest
Mar 5th, 2015
189
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   vm = $evm.root['vm']
  2.  
  3.   user = $evm.root['user']
  4.   $evm.log("info", "===== Owner: #{user.inspect}")
  5.  
  6.   group = vm.owner.current_group
  7.   $evm.log("info", "===== Group: #{group.inspect}")
  8.  
  9.   miq_group = user.current_group
  10.  
  11.   unless miq_group.tags.nil?
  12.     $evm.log("info","#{@method} - Group:<#{miq_group.description}> Begin Tags [miq_group.tags]")
  13.     miq_group.tags.sort.each { |tag_element| tag_text = tag_element.split('/'); $evm.log("info", "#{@method} - Group:<#{miq_group.description}> Category:<#{tag_text.first.inspect}> Tag:<#{tag_text.last.inspect}>")}
  14.     $evm.log("info","#{@method} - Group:<#{miq_group.description}> End Tags [miq_group.tags]")
  15.     $evm.log("info","")
  16.   end
RAW Paste Data