Skip to content

Commit

Permalink
make probing more explicit (mostly code readability)
Browse files Browse the repository at this point in the history
  • Loading branch information
shundhammer committed Dec 22, 2015
1 parent 6ab5233 commit 28d3e4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/storage/storage_proposal.rb
Expand Up @@ -63,6 +63,7 @@ def initialize

# Create a storage proposal.
def propose
StorageManager.start_probing
prepare_devicegraphs

boot_requirements_checker = BootRequirementsChecker.new(@settings)
Expand Down Expand Up @@ -134,7 +135,7 @@ def proposal_to_staging
# If no PROPOSAL_BASE devicegraph exists yet, it will be copied from PROBED.
#
def prepare_devicegraphs
storage = StorageManager.instance # this will start probing in the first invocation
storage = StorageManager.instance
storage.copy_devicegraph(PROBED, PROPOSAL_BASE) unless storage.exist_devicegraph(PROPOSAL_BASE)
reset_proposal
end
Expand Down

0 comments on commit 28d3e4f

Please sign in to comment.