1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-21 09:33:53 +03:00

F #5917: Added proxy feature for datastore (#2292)

also .gitignore for vscode workspace file
This commit is contained in:
Daniel Boca 2022-09-27 11:10:49 +02:00 committed by GitHub
parent e28896940b
commit 304126d9b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

2
.gitignore vendored
View File

@ -70,7 +70,7 @@ share/esx-fw-vnc/*.rpm
share/esx-fw-vnc/.vagrant*
*.vscode
*.code-workspace
share/context/*
!share/context/download_context.sh
!share/context/SConstruct

View File

@ -317,7 +317,7 @@ opts = GetoptLong.new(
[ '--threads', '-t', GetoptLong::OPTIONAL_ARGUMENT ],
[ '--market-types', '-m', GetoptLong::OPTIONAL_ARGUMENT ],
[ '--timeout', '-w', GetoptLong::OPTIONAL_ARGUMENT ],
[ '--proxy' , GetoptLong::OPTIONAL_ARGUMENT ]
[ '--proxy' '-p', GetoptLong::OPTIONAL_ARGUMENT ]
)
mp_type = nil
@ -333,6 +333,8 @@ begin
mp_type = arg.split(',').map {|a| a.strip }
when '--timeout'
timeout = arg.to_i
when '--proxy'
ENV['http_proxy'] = arg
end
end
rescue Exception => e