Skip to content

Commit

Permalink
set record_type to lowercase as api is case sensitive (#32734)
Browse files Browse the repository at this point in the history
  • Loading branch information
lomeroe authored and Mike Place committed Apr 21, 2016
1 parent 6c65487 commit 2bf3b7f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions salt/modules/infoblox.py
Expand Up @@ -115,6 +115,7 @@ def delete_record(name,
_throw_no_creds()
return None

record_type = record_type.lower()
currentRecords = get_record(name,
record_type,
infoblox_server,
Expand Down Expand Up @@ -193,6 +194,7 @@ def update_record(name,
_throw_no_creds()
return None

record_type = record_type.lower()
currentRecords = get_record(name,
record_type,
infoblox_server,
Expand Down Expand Up @@ -443,6 +445,7 @@ def get_record(record_name,
infoblox_user,
infoblox_password)

record_type = record_type.lower()
if infoblox_server is None and infoblox_user is None and infoblox_password is None:
_throw_no_creds()
return None
Expand Down

0 comments on commit 2bf3b7f

Please sign in to comment.