1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Made libvirt username param consistent with other providers libvirt_user -> libvirt_username

This commit is contained in:
Patrick Debois 2011-09-12 17:10:12 +03:00
parent b47ca4f761
commit 0edd5157fd

View file

@ -46,10 +46,10 @@ module Fog
require 'libvirt'
begin
if options[:libvirt_user] and options[:libvirt_password]
if options[:libvirt_username] and options[:libvirt_password]
@connection = ::Libvirt::open_auth(@uri.uri, [::Libvirt::CRED_AUTHNAME, ::Libvirt::CRED_PASSPHRASE]) do |cred|
if cred['type'] == ::Libvirt::CRED_AUTHNAME
res = options[:libvirt_user]
res = options[:libvirt_username]
elsif cred["type"] == ::Libvirt::CRED_PASSPHRASE
res = options[:libvirt_password]
else