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

Added a new trigger on node maintenance task #4948

Merged
merged 5 commits into from
Apr 2, 2020

Conversation

fdurand
Copy link
Member

@fdurand fdurand commented Nov 20, 2019

Description

Add a security event trigger on node maintenance task

Impacts

pfmon

Delete branch after merge

YES

Checklist

  • Document the feature
  • Add unit tests
  • Add acceptance tests (TestLink)

NEWS file entries

Enhancements

  • New security event in node maintenance task

lib/pf/node.pm Outdated
'tid' => 'node_maintenance',
'type' => 'internal',
);
$apiclient->call('trigger_violation', %violation_data);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trigger_violation and %violation_data need to be renamed to security_event.

@fdurand fdurand force-pushed the feature/trigger_on_maintenance branch from b5120b2 to b5d1927 Compare February 27, 2020 19:41
@julsemaan
Copy link
Collaborator

@nqb, take another look and merge

lib/pf/node.pm Outdated
'tid' => 'node_maintenance',
'type' => 'internal',
);
$apiclient->call('security_event', %security_event);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$apiclient->call('security_event', %security_event);
$apiclient->notify('trigger_security_event', %security_event);

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make following change and I will merge.

@fdurand
Copy link
Member Author

fdurand commented Apr 2, 2020

BUMP

@nqb nqb merged commit 15fb72b into devel Apr 2, 2020
@nqb nqb deleted the feature/trigger_on_maintenance branch April 2, 2020 12:00
nqb added a commit that referenced this pull request Apr 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants