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

Cannot create Rulebook Activations as disabled #365

Open
3 tasks done
zjleblanc opened this issue Nov 27, 2024 · 0 comments
Open
3 tasks done

Cannot create Rulebook Activations as disabled #365

zjleblanc opened this issue Nov 27, 2024 · 0 comments

Comments

@zjleblanc
Copy link
Contributor

zjleblanc commented Nov 27, 2024

Please confirm the following

  • I agree to follow this project's code of conduct.
  • I have checked the current issues for duplicates.
  • I understand that event-driven-ansible collection is open source software provided for free and that I might not receive a timely response.

Bug Summary

Using the rulebook_activation module, one cannot create resource in the disabled state. It will always be created as enabled.

Environment

de-supported-rhel9:1.1.1-31

ansible-rulebook-1.1.1-1.el9ap.noarch

Steps to reproduce

Define a rulebook_activiation in configuration-as-code variables for use with infra.aap_configuration

---
eda_rulebook_activations:
  - name: Demo Rulebook Activation
    description: Rulebook that processes various events sourced from Dynatrace problems
    organization: Default
    project: EDA Demos
    rulebook: dynatrace_event_stream.yml
    decision_environment: Default Decision Environment
    event_streams: 
      - event_stream: Dynatrace Event Stream
        source_name: Dynatrace Event Source
    eda_credentials:
      - My Controller
    enabled: false

Ensure the variables file is loaded
Run a playbook and invoke infra.aap_configuration.dispatch

Actual results

Rulebook activation Demo Rulebook Activation is created in the enabled state

Expected results

Rulebook activation Demo Rulebook Activation is created in the disabled state

Additional information

Offered solution via #366

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant