Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Augment event.send state function to include data about a watched state into the event #20544

Closed
whiteinge opened this issue Feb 10, 2015 · 1 comment
Labels
Feature new functionality including changes to functionality and code refactors, etc. stale
Milestone

Comments

@whiteinge
Copy link
Contributor

Example:

a_test_file:
  file.managed:
    - name: /tmp/atestfile
    - source: salt://random_tests/file.txt
  event.send:
    # Include the running dictionary entry for any requisites in the event data
    - include_requisites: True
    - data: 
        status: "File has been created. 100% done"
    - onchanges:
      - file: a_test_file

Example event:

Event fired at Fri Dec 20 10:43:01 2013
*************************
Tag: a_test_file
Data:
{'_stamp': '2013-12-20_10:43:01.638387',
 'data': {
  'status': "File has been created. 100% done",
  'requisites': [
    {'file_|-a_test_file_|-/tmp/atestfile_|-file_managed': {
      'comment': 'File was updated',
      '__run_num__': 0,
      'changes': True,
      'name': '/tmp/atestfile',
      'result': True,
    },
   ],
 },
 'id': 'the_mid',
 'pretag': None,
 'tag': 'a_test_file'}

The changes in #15949 were intended to facilitate this. Now to come up with a good interface and write a little glue code...

@whiteinge whiteinge added the Feature new functionality including changes to functionality and code refactors, etc. label Feb 10, 2015
@whiteinge whiteinge added this to the Approved milestone Feb 10, 2015
@stale
Copy link

stale bot commented Oct 12, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.

@stale stale bot added the stale label Oct 12, 2017
@stale stale bot closed this as completed Oct 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature new functionality including changes to functionality and code refactors, etc. stale
Projects
None yet
Development

No branches or pull requests

1 participant