Revision a41960b7 src/datastore_mad/remotes/vcenter/cp

View differences:

src/datastore_mad/remotes/vcenter/cp
81 81

  
82 82
    # Specify downloader args
83 83
    downsh_args = " "
84
    downsh_args += "--md5 #{md5} " if md5 && !md5.empty? && !md5.eql?("-")
85
    downsh_args += "--sha1 #{sha1} " if sha1 && !sha1.empty?
86
    downsh_args += "--nodecomp " if nodecomp && !nodecomp.empty?
87
    downsh_args += "--limit #{limit_bw} " if limit_bw && !limit_bw.empty?
84
    downsh_args << "--md5 #{md5} " if md5 && !md5.empty? && !md5.eql?("-")
85
    downsh_args << "--sha1 #{sha1} " if sha1 && !sha1.empty?
86
    downsh_args << "--nodecomp " if nodecomp && !nodecomp.empty?
87
    downsh_args << "--limit #{limit_bw} " if limit_bw && !limit_bw.empty?
88 88

  
89 89
    downloader = "#{File.dirname(__FILE__)}/../downloader.sh #{downsh_args}"
90 90

  

Also available in: Unified diff