Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/fog/proxmox/auth/token/access_ticket.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ def auth_path(_params = {})
def auth_body(params = {})
raise URIError, 'URI params is required' if params.nil? || params.empty?

if params[:proxmox_username].nil? || params[:proxmox_username].empty?
if params[:proxmox_username].nil? || params[:proxmox_username].to_s.strip.empty?
raise URIError,
'proxmox_username is required'
end
if params[:proxmox_password].nil? || params[:proxmox_password].empty?
if params[:proxmox_password].nil? || params[:proxmox_password].to_s.strip.empty?
raise URIError,
'proxmox_password is required'
end
Expand Down