Skip to content

Commit

Permalink
fix(storage): avoid error when setting storage config
Browse files Browse the repository at this point in the history
  • Loading branch information
joseivanlopez committed Oct 30, 2024
1 parent 240a885 commit a325d9b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 0 additions & 3 deletions service/lib/agama/storage/config_conversions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ module Agama
module Storage
# Conversions for the storage config.
module ConfigConversions
# Reserved string for Configs::Search meaning 'match all devices if there is any'
SEARCH_ANYTHING_STRING = "*"
private_constant :SEARCH_ANYTHING_STRING
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ def convert

private

# Reserved search value meaning 'match all devices or ignore the section'.
#
# { search: "*" } is a shortcut for { search: { ifNotFound: "skip" } }.
SEARCH_ANYTHING_STRING = "*"
private_constant :SEARCH_ANYTHING_STRING

alias_method :search_json, :config_json

# @see Base#conversions
Expand Down

0 comments on commit a325d9b

Please sign in to comment.