Automation method $evm.object Returning Nil? when passing credentials to an external system.

Solution Unverified - Updated -

Issue

  • I have setup an instance + method to call an external system and having an unusual problem with credentials. I am storing the username and password within the instance as
Attribute: (username)
Attribute (password)  --- This is encrypted.
  • When I use the following, I receive NIL and blank username and passwords.
username = nil
    username ||= $evm.object['username']

    password = nil
    password ||= $evm.object.decrypt('password')

  $evm.log("info", "usernameobject #{username.class}")

Environment

  • Cloudforms 3.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content