Skip to content
This repository has been archived by the owner on Feb 9, 2022. It is now read-only.

Not able to create ZoneAuth #37

Closed
ho-manho opened this issue Oct 19, 2015 · 2 comments
Closed

Not able to create ZoneAuth #37

ho-manho opened this issue Oct 19, 2015 · 2 comments

Comments

@ho-manho
Copy link

When I tried to create ZoneAuth, it seems that the fqdn set for the ZoneAuth instance is not being passed into the post request:

1.9.3-p448 :001 > require 'infoblox'
 => true
1.9.3-p448 :002 > ENV["WAPI_VERSION"]='1.2'
 => "1.2"
1.9.3-p448 :003 > connection = Infoblox::Connection.new(username: 'username', password: 'password', host: 'host')
 => #<Infoblox::Connection:70211723145900 @host="host">
1.9.3-p448 :004 > zone_auth = Infoblox::ZoneAuth.new(:connection => connection)
 => #<Infoblox::ZoneAuth:0x007fb6e1a1c558 @connection=#<Infoblox::Connection:70211723145900 @host="host">>
1.9.3-p448 :005 > zone_auth.fqdn = 'zone1.com'
 => "zone1.com"
1.9.3-p448 :006 > zone_auth.post
Infoblox::Error: Error: 400 { "Error": "AdmConProtoError: field for create missing: fqdn",
  "code": "Client.Ibap.Proto",
  "text": "field for create missing: fqdn"
}

It would be greatly appreciated if you could take a look. Thank you for all the great work.

@unclebilly
Copy link
Contributor

Hello - I pushed out gem version 0.5.1 with a fix for this. Let me know if that works for you!

@ho-manho
Copy link
Author

The fix works for me. Thanks a lot for the quick fix.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants