Skip to content

Commit

Permalink
Tuned comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mchf committed Sep 22, 2014
1 parent 43e68c6 commit fb9bee7
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/clients/save_network.rb
Expand Up @@ -63,13 +63,15 @@ def main
end

def adjust_for_network_disks(file)
# known net devices: `nfs `iscsi `fcoe
device = NetworkStorage.getDevice(Installation.destdir)
network_disk = NetworkStorage.isDiskOnNetwork(device)
# Check if installation is targeted to a remote destination.
# Discover remote access method here - { :nfs, :iscsi, :fcoe }
remote_access = NetworkStorage.isDiskOnNetwork(
NetworkStorage.getDevice(Installation.destdir)
)

log.info("Network based device: #{network_disk}")
log.info("Network based device: #{remote_access}")

return if network_disk != :iscsi
return if remote_access != :iscsi
return if !NetworkStorage.getiBFTDevice.include?(
InstallInfConvertor::InstallInf["Netdevice"]
)
Expand Down

0 comments on commit fb9bee7

Please sign in to comment.