Skip to content
This repository has been archived by the owner on Aug 12, 2019. It is now read-only.

Commit

Permalink
Adjusted ENUM number for rule types
Browse files Browse the repository at this point in the history
  • Loading branch information
marknca committed Mar 8, 2016
1 parent 0bdc22f commit 16e266a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions deepsecurity/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1062,11 +1062,11 @@ def get_recommended_rules_for_computer(self, computer_id):
'LOGINSPECTIONRULE': 'log_inspection',
}
recommendation_rule_types = {
'APPLICATIONTYPE': 0,
'PAYLOADFILTER': 1,
'FIREWALLRULE': 2,
'INTEGRITYRULE': 3,
'LOGINSPECTIONRULE': 4,
'APPLICATIONTYPE': 1,
'PAYLOADFILTER': 2,
'FIREWALLRULE': 3,
'INTEGRITYRULE': 4,
'LOGINSPECTIONRULE': 5,
}
for rule_type, rule_type_id in recommendation_rule_types.items():
call = self._get_call_structure()
Expand Down

0 comments on commit 16e266a

Please sign in to comment.