Code Monkey home page Code Monkey logo

Comments (3)

shawn-hurley avatar shawn-hurley commented on July 28, 2024

@jimi-c Could you list out what the valuable pieces for every event might be? This would help us determine what useful info to expose is.

from ansible-operator.

jimi-c avatar jimi-c commented on July 28, 2024

@shawn-hurley / @mhrivnak the doc for what runner sends back is here:
https://ansible-runner.readthedocs.io/en/latest/intro.html#runner-artifact-job-events-host-and-playbook-events

It looks like the best course of action would be to print the stdout field from the data blob if that key exists, otherwise print the event_data (or the entire blob, if people prefer). Within event data, as I said in chat, there are pretty much only 2-3 fields that stay static: rc, changed and failed. The failed key is not always set in the data, but if it is there should also be a corresponding msg field (though that is not strictly enforced). You could look for that though, if you wanted to do some special logging to highlight failures or to trigger other events.

from ansible-operator.

matburt avatar matburt commented on July 28, 2024

Generally if there is anything in the event{} data structure then you'll have a stdout entry. If you're needing to display some content then you can pretty well rely on there being something in there... otherwise you can just throw away and not display any data.

This is the code Tower relies on to drive its own display.

from ansible-operator.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.