Fix url with NSX-T packages for NSX-T 1.0.1 version

Change-Id: Ifd171c98f874870f9bb642565ec2ee3915679dff
This commit is contained in:
Artem Savinov 2016-09-16 11:27:07 +03:00
parent a8caf3e740
commit ee888518bd
1 changed files with 5 additions and 1 deletions

View File

@ -76,7 +76,11 @@ def get_component_url(manager, username, password)
manifest.split(/\n/).each do |str| manifest.split(/\n/).each do |str|
if str.include? 'NSX_HOST_COMPONENT_UBUNTU_1404_TAR' if str.include? 'NSX_HOST_COMPONENT_UBUNTU_1404_TAR'
url = str.split('=')[1] url = str.split('=')[1]
return "http://#{manager}:8080#{url}" if node_version.start_with?('1.0.0')
return "http://#{manager}:8080#{url}"
else
return "http://#{manager}:8080/repository/#{url}"
end
end end
end end
end end