Skip to content

Commit

Permalink
fix types in FileStore
Browse files Browse the repository at this point in the history
  • Loading branch information
lilatomic committed Sep 20, 2024
1 parent 39c98a0 commit 5975d36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/grafanarmadillo/flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ def read_alert(self, name):

def read_dashboard(self, name):
"""Read a dashboard from this store."""
return self._read(self.resolve_object_to_filepath(name, self.TOK_ALERT), self.json_decoder)
return self._read(self.resolve_object_to_filepath(name, self.TOK_DASHBOARD), self.json_decoder)

def write_alert(self, name, alert):
"""Write an alert to this store."""
return self._write(self.resolve_object_to_filepath(name, self.TOK_DASHBOARD), alert, self.json_encoder)
return self._write(self.resolve_object_to_filepath(name, self.TOK_ALERT), alert, self.json_encoder)

def write_dashboard(self, name, dashboard):
"""Write an alert to this store."""
Expand Down

0 comments on commit 5975d36

Please sign in to comment.