Skip to content

ManageIQ and Ansible: 'evm_owner_email' is undefined. #23298

Closed Answered by flealf
flealf asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, thanks for your answers.

I solved it by creating a method: General/Methods/trae_email

email = $evm.root['user'].email  
#emial = miq_request.get_option(:owner_email)
$evm.log(:info, "=========================== \ El correo del usuario es: #{email}  ")
list_values = {
  'required'    => true,
  'protected'  => false,
  'read_only'   => true,
  'value'     => email
  }
list_values.each do |key, value|
  $evm.log(:info, "Setting dialog param_owner_mail variable #{key} to #{value}")
  $evm.object[key] = value
end

And I called it in the Service Dialog and I declared it as param_evm_owner_email

Service Dialog

[Fiel Information] 
Label: eMail
Name: param_evm_owner_email
Dynamic: yes
[Op…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@jrafanie
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by flealf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants