1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

F #2514: Look for ONE_DB_PASSWORD environment var (#2516)

before falling back to interactive
This commit is contained in:
Anton Todorov 2020-04-28 11:58:31 +03:00 committed by GitHub
parent 83585383f9
commit 221636f217
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,6 +48,9 @@ class OneDB
end
passwd = ops[:passwd]
if !passwd
passwd = ENV['ONE_DB_PASSWORD']
end
if !passwd
passwd = get_password
end