Fix the version lock update code (#1064)
* Fix the version lock update code * Add Rule.lock_info() method
This commit is contained in:
@@ -324,6 +324,9 @@ class TOMLRuleContents(MarshmallowDataclassMixin):
|
||||
def name(self) -> str:
|
||||
return self.data.name
|
||||
|
||||
def lock_info(self) -> dict:
|
||||
return {"rule_name": self.name, "sha256": self.sha256(), "version": self.autobumped_version}
|
||||
|
||||
@property
|
||||
def is_dirty(self) -> Optional[bool]:
|
||||
"""Determine if the rule has changed since its version was locked."""
|
||||
|
||||
Reference in New Issue
Block a user