Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
joseivanlopez committed Oct 23, 2024
1 parent d908bf8 commit 8371dc2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions service/lib/agama/dbus/storage/manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,11 @@ def apply_config(serialized_config)

# Gets and serializes the storage config used to calculate the current proposal.
#
# @param solved [Boolean] Whether to recover solved config.
# @return [String] Serialized config according to the JSON schema.
def recover_config
JSON.pretty_generate(proposal.config_json)
def recover_config(solved: false)
json = proposal.storage_json(solved: solved)
JSON.pretty_generate(json)
end

def install
Expand All @@ -139,6 +141,7 @@ def deprecated_system
busy_while { apply_config(serialized_config) }
end
dbus_method(:GetConfig, "out serialized_config:s") { recover_config }
dbus_method(:GetSolvedConfig, "out serialized_config:s") { recover_config(solved: true) }
dbus_method(:Install) { install }
dbus_method(:Finish) { finish }
dbus_reader(:deprecated_system, "b")
Expand Down

0 comments on commit 8371dc2

Please sign in to comment.