Per summary, provide a mechanism for administrators to inject code into the Automate sandbox. This could be as simple as two text boxes, globally, for additional code to prepend and append code to ./lib/miq_automation_engine/engine/drb_remote_invoker.rb Use cases: log() dump_root() dump_attr() Bare code may be a bad idea (and thus no reason for appending code, either), though I'm not sure if this could be validated.
https://github.com/ManageIQ/manageiq/pull/14286
Jeff, Please offer feedback on the PR, it accommodates your request
Kinda curious how this will log e.g. line numbers from the combined sandbox script. Core functionality seems what I want.
https://github.com/ManageIQ/manageiq-automation_engine/pull/16
New commit detected on ManageIQ/manageiq-automation_engine/master: https://github.com/ManageIQ/manageiq-automation_engine/commit/28d043ce9cf1dd82ee9d92658433f8a2b42b8c16 commit 28d043ce9cf1dd82ee9d92658433f8a2b42b8c16 Author: mkanoor <mkanoor> AuthorDate: Fri May 5 12:12:04 2017 -0400 Commit: mkanoor <mkanoor> CommitDate: Fri May 5 12:12:04 2017 -0400 Added support for embedded methods https://bugzilla.redhat.com/show_bug.cgi?id=1418374 .../engine/miq_ae_engine/drb_remote_invoker.rb | 27 ++++-- .../engine/miq_ae_engine/miq_ae_method.rb | 40 ++++++++- spec/engine/miq_ae_method_spec.rb | 97 +++++++++++++++++++++- 3 files changed, 151 insertions(+), 13 deletions(-)