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:
parent
b47ca4f761
commit
0edd5157fd
1 changed files with 2 additions and 2 deletions
|
@ -46,10 +46,10 @@ module Fog
|
||||||
require 'libvirt'
|
require 'libvirt'
|
||||||
|
|
||||||
begin
|
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|
|
@connection = ::Libvirt::open_auth(@uri.uri, [::Libvirt::CRED_AUTHNAME, ::Libvirt::CRED_PASSPHRASE]) do |cred|
|
||||||
if cred['type'] == ::Libvirt::CRED_AUTHNAME
|
if cred['type'] == ::Libvirt::CRED_AUTHNAME
|
||||||
res = options[:libvirt_user]
|
res = options[:libvirt_username]
|
||||||
elsif cred["type"] == ::Libvirt::CRED_PASSPHRASE
|
elsif cred["type"] == ::Libvirt::CRED_PASSPHRASE
|
||||||
res = options[:libvirt_password]
|
res = options[:libvirt_password]
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue