Skip to content

Commit

Permalink
Disable ssh_import sub proposal if no configuration available.
Browse files Browse the repository at this point in the history
  • Loading branch information
teclator committed May 26, 2016
1 parent 142a500 commit 5fac26e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib/installation/clients/inst_pre_install.rb
Expand Up @@ -94,6 +94,12 @@ def main
read_ssh_info(device, mount_point)
end

# The ssh_import proposal doesn't make sense if there is no
# configuration to import from.
if ::Installation::SshImporter.instance.configurations.empty?
ProductControl.DisableSubProposal("inst_initial", "ssh_import")
end

# free the memory
@useful_partitions = nil

Expand Down

0 comments on commit 5fac26e

Please sign in to comment.